blob: 4605971fdcbc598554ae035ddc462f39b5a1c60f [file] [log] [blame]
Rasmus Villemoescde8c952024-10-03 23:27:51 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef _U_BOOT_SCHEDULE_H
4#define _U_BOOT_SCHEDULE_H
5
Jerome Forissier2e24a352025-04-18 16:09:36 +02006#include <uthread.h>
7
Rasmus Villemoescde8c952024-10-03 23:27:51 +02008#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 */
16void schedule(void);
17
18#else
19
20static inline void schedule(void)
21{
Jerome Forissier2e24a352025-04-18 16:09:36 +020022 uthread_schedule();
Rasmus Villemoescde8c952024-10-03 23:27:51 +020023}
24
25#endif
26
27#endif