summaryrefslogtreecommitdiff
path: root/include/u-boot/schedule.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-10-23 08:33:56 -0600
committerTom Rini <trini@konsulko.com>2024-10-23 08:33:56 -0600
commit7af813341d5df064aeee764c31ffb50ffcdf4eb6 (patch)
tree54b73688ebc3a841f0d347e6f4f3da84aaa294b4 /include/u-boot/schedule.h
parent392ff1449f7d30cc48fd4d17320d05882cd68f2e (diff)
parented3410ee6049a7683718e8255575ad55ee1bdefd (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-watchdog
CI: https://dev.azure.com/sr0718/u-boot/_build/results?buildId=378&view=results * watchdog: gpio_wdt: add support for stoppable devices (Rasmus) * watchdog: Add DaVinci's watchdog support (Bastien) * cyclic: disentangling cyclic API from schedule() (Rasmus) * watchdog: introduce separate SPL symbol for WDT_GPIO (Rasmus)
Diffstat (limited to 'include/u-boot/schedule.h')
-rw-r--r--include/u-boot/schedule.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/u-boot/schedule.h b/include/u-boot/schedule.h
new file mode 100644
index 00000000000..4fd34c41229
--- /dev/null
+++ b/include/u-boot/schedule.h
@@ -0,0 +1,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