From: Jeroen Domburg Date: Fri, 28 Oct 2016 06:37:36 +0000 (+0800) Subject: Also call tick hook on app cpu when scheduler is suspended X-Git-Tag: v1.0~96^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cd86d6bce502b41248b6fb8bccaeb1a4ee47c7d;p=esp-idf Also call tick hook on app cpu when scheduler is suspended --- diff --git a/components/freertos/tasks.c b/components/freertos/tasks.c index bd32f834ff..e4b887273d 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -2308,7 +2308,7 @@ BaseType_t xSwitchRequired = pdFALSE; { /* Guard against the tick hook being called when the pended tick count is being unwound (when the scheduler is being unlocked). */ - if( uxPendedTicks == ( UBaseType_t ) 0U ) + if( ( uxSchedulerSuspended[ xPortGetCoreID() ] != ( UBaseType_t ) pdFALSE ) || uxPendedTicks == ( UBaseType_t ) 0U ) { vApplicationTickHook(); }