diff options
| author | Tom Rini <[email protected]> | 2024-10-23 08:33:56 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-23 08:33:56 -0600 |
| commit | 7af813341d5df064aeee764c31ffb50ffcdf4eb6 (patch) | |
| tree | 54b73688ebc3a841f0d347e6f4f3da84aaa294b4 /include | |
| parent | 392ff1449f7d30cc48fd4d17320d05882cd68f2e (diff) | |
| parent | ed3410ee6049a7683718e8255575ad55ee1bdefd (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')
| -rw-r--r-- | include/asm-generic/global_data.h | 1 | ||||
| -rw-r--r-- | include/cyclic.h | 24 | ||||
| -rw-r--r-- | include/u-boot/schedule.h | 24 | ||||
| -rw-r--r-- | include/watchdog.h | 2 |
4 files changed, 26 insertions, 25 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 644a0d77873..b84cc5bbecd 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -21,7 +21,6 @@ #ifndef __ASSEMBLY__ #include <board_f.h> -#include <cyclic.h> #include <event_internal.h> #include <fdtdec.h> #include <membuff.h> diff --git a/include/cyclic.h b/include/cyclic.h index cd95b691d48..c6c463d68e9 100644 --- a/include/cyclic.h +++ b/include/cyclic.h @@ -13,6 +13,7 @@ #include <linux/list.h> #include <asm/types.h> +#include <u-boot/schedule.h> // to be removed later /** * struct cyclic_info - Information about cyclic execution function @@ -86,21 +87,6 @@ int cyclic_unregister_all(void); */ struct hlist_head *cyclic_get_list(void); -/** - * cyclic_run() - Interate over all registered cyclic functions - * - * Interate over all registered cyclic functions and if the it's function - * needs to be executed, then call into these registered functions. - */ -void cyclic_run(void); - -/** - * schedule() - Schedule all potentially waiting tasks - * - * Basically a wrapper for cyclic_run(), pontentially enhanced by some - * other parts, that need to get handled periodically. - */ -void schedule(void); #else static inline void cyclic_register(struct cyclic_info *cyclic, cyclic_func_t func, @@ -112,14 +98,6 @@ static inline void cyclic_unregister(struct cyclic_info *cyclic) { } -static inline void cyclic_run(void) -{ -} - -static inline void schedule(void) -{ -} - static inline int cyclic_unregister_all(void) { return 0; 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 diff --git a/include/watchdog.h b/include/watchdog.h index d1956fafca1..0149b44d077 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -10,7 +10,7 @@ #ifndef _WATCHDOG_H_ #define _WATCHDOG_H_ -#include <cyclic.h> +#include <u-boot/schedule.h> // to be removed later /* * Reset the watchdog timer, always returns 0 |
