mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
28 lines
459 B
C
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
|