summaryrefslogtreecommitdiff
path: root/include/u-boot/schedule.h
blob: 4fd34c412291d8d8ba6ea8e1cc4ce1ac89e73a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0+ */

#ifndef _U_BOOT_SCHEDULE_H
#define _U_BOOT_SCHEDULE_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)
{
}

#endif

#endif