From 6a72a5706be7a0c60d9954d38075ad8ebc6b8af6 Mon Sep 17 00:00:00 2001 From: moral-hao Date: Wed, 15 Nov 2023 22:09:41 +0800 Subject: [PATCH] In smp, every core has a idle task. --- tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index 5500bf4353c..496552e5d0f 100644 --- a/tasks.c +++ b/tasks.c @@ -5854,7 +5854,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;