Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoral-Hao <sihunzhilei@126.com>2023-11-16 22:53:27 +0300
committerGitHub <noreply@github.com>2023-11-16 22:53:27 +0300
commit5f2bb1b48b6dcd33bcec4309e2df3448a64a7d67 (patch)
tree8162bc49e287c270d246cc16c2230d4fc60814a0
parentdc09a3dd5144c4033607565c71b9919900f95cff (diff)
In smp, every core has a idle task. (#893)
Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com>
-rw-r--r--tasks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks.c b/tasks.c
index 7770838b2..7aa93f7f3 100644
--- a/tasks.c
+++ b/tasks.c
@@ -5865,7 +5865,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
{
#if ( INCLUDE_vTaskSuspend == 1 )
/* The idle task exists in addition to the application tasks. */
- const UBaseType_t uxNonApplicationTasks = 1;
+ const UBaseType_t uxNonApplicationTasks = configNUMBER_OF_CORES;
#endif /* INCLUDE_vTaskSuspend */
eSleepModeStatus eReturn = eStandardSleep;