Files
u-boot/include/u-boot/schedule.h
Jerome Forissier e831370af5 cyclic: invoke uthread_schedule() from schedule()
Make the schedule() call from the CYCLIC framework a uthread scheduling
point too. This makes sense since schedule() is called from a lot of
places where uthread_schedule() needs to be called.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2025-04-23 13:19:44 -06:00

28 lines
459 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
#ifndef _U_BOOT_SCHEDULE_H
#define _U_BOOT_SCHEDULE_H
#include <uthread.h>
#if CONFIG_IS_ENABLED(CYCLIC)
/**
* schedule() - Schedule all potentially waiting tasks
*
* Run all pending tasks registered via the cyclic framework, and
* potentially perform other actions that need to be done
* periodically.
*/
void schedule(void);
#else
static inline void schedule(void)
{
uthread_schedule();
}
#endif
#endif