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 | |||||
6 | #if CONFIG_IS_ENABLED(CYCLIC) | ||||
7 | /** | ||||
8 | * schedule() - Schedule all potentially waiting tasks | ||||
9 | * | ||||
10 | * Run all pending tasks registered via the cyclic framework, and | ||||
11 | * potentially perform other actions that need to be done | ||||
12 | * periodically. | ||||
13 | */ | ||||
14 | void schedule(void); | ||||
15 | |||||
16 | #else | ||||
17 | |||||
18 | static inline void schedule(void) | ||||
19 | { | ||||
20 | } | ||||
21 | |||||
22 | #endif | ||||
23 | |||||
24 | #endif |