Rasmus Villemoes | cde8c95 | 2024-10-03 23:27:51 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | |
| 3 | #ifndef _U_BOOT_SCHEDULE_H |
| 4 | #define _U_BOOT_SCHEDULE_H |
| 5 | |
Jerome Forissier | 2e24a35 | 2025-04-18 16:09:36 +0200 | [diff] [blame] | 6 | #include <uthread.h> |
| 7 | |
Rasmus Villemoes | cde8c95 | 2024-10-03 23:27:51 +0200 | [diff] [blame] | 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 | |
| 20 | static inline void schedule(void) |
| 21 | { |
Jerome Forissier | 2e24a35 | 2025-04-18 16:09:36 +0200 | [diff] [blame] | 22 | uthread_schedule(); |
Rasmus Villemoes | cde8c95 | 2024-10-03 23:27:51 +0200 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | #endif |
| 26 | |
| 27 | #endif |