]> granicus.if.org Git - esp-idf/commitdiff
freertos: fix compilation warning in single core mode
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 30 Oct 2018 08:05:45 +0000 (16:05 +0800)
committerbot <bot@espressif.com>
Wed, 21 Nov 2018 03:42:15 +0000 (03:42 +0000)
When tickless idle is enabled

components/freertos/tasks.c

index 0f42f3c474acda1a25f8bc0d9394da881a406167..94dbce8672bd462ecebad5e63aed930072779d7c 100644 (file)
@@ -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 )
        {