From 5f2bb1b48b6dcd33bcec4309e2df3448a64a7d67 Mon Sep 17 00:00:00 2001 From: Moral-Hao Date: Fri, 17 Nov 2023 03:53:27 +0800 Subject: [PATCH] In smp, every core has a idle task. (#893) Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> --- tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.c b/tasks.c index 7770838b231..7aa93f7f3ee 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;