]> granicus.if.org Git - esp-idf/commitdiff
Also call tick hook on app cpu when scheduler is suspended
authorJeroen Domburg <git@j0h.nl>
Fri, 28 Oct 2016 06:37:36 +0000 (14:37 +0800)
committerJeroen Domburg <git@j0h.nl>
Fri, 28 Oct 2016 06:37:36 +0000 (14:37 +0800)
components/freertos/tasks.c

index bd32f834ffe3326d8d5f5f073f0edf826ea2d925..e4b887273d91f23a44f5897abfc72718acd508ba 100644 (file)
@@ -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();
                        }