From: Ivan Grokhotkov Date: Tue, 30 Oct 2018 08:05:45 +0000 (+0800) Subject: freertos: fix compilation warning in single core mode X-Git-Tag: v3.3-beta1~138^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae08bdcc31284aeb9032b87de05b1cc96b33f7e0;p=esp-idf freertos: fix compilation warning in single core mode When tickless idle is enabled --- diff --git a/components/freertos/tasks.c b/components/freertos/tasks.c index 0f42f3c474..94dbce8672 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -2153,6 +2153,8 @@ void vTaskSuspendAll( void ) #if ( configUSE_TICKLESS_IDLE != 0 ) +#if ( portNUM_PROCESSORS > 1 ) + static BaseType_t xHaveReadyTasks() { for (int i = tskIDLE_PRIORITY + 1; i < configMAX_PRIORITIES; ++i) @@ -2169,6 +2171,7 @@ void vTaskSuspendAll( void ) return pdFALSE; } +#endif // portNUM_PROCESSORS > 1 static TickType_t prvGetExpectedIdleTime( void ) {