1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 3 #ifndef _U_BOOT_SCHEDULE_H 4 #define _U_BOOT_SCHEDULE_H 5 6 #include <uthread.h> 7 8 #if CONFIG_IS_ENABLED(CYCLIC) 9 /** 10 * schedule() - Schedule all potentially waiting tasks 11 * 12 * Run all pending tasks registered via the cyclic framework, and 13 * potentially perform other actions that need to be done 14 * periodically. 15 */ 16 void schedule(void); 17 18 #else 19 schedule(void)20static inline void schedule(void) 21 { 22 uthread_schedule(); 23 } 24 25 #endif 26 27 #endif 28