]> 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)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 5 Nov 2018 04:18:29 +0000 (12:18 +0800)
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 )
        {