diff options
author | Rasmus Villemoes <ravi@prevas.dk> | 2024-10-03 23:27:57 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2024-10-23 06:52:38 +0200 |
commit | bd665754894ffe4ea01e43f4fc5d3ef4cba1689d (patch) | |
tree | c4fe8d38ebc0c29eef6bac7910daeb6a49bbbafd | |
parent | 307449de9058657eef544043013e8655468b3032 (diff) |
watchdog.h: change include of cyclic.h to u-boot/schedule.h
Nobody relies on getting the cyclic API declared by including the
watchdog.h header, but for historical reasons, many TUs include
watchdog.h to get a declaration of schedule(). Now that we have a
dedicated header for just that, include that header instead of
cyclic.h.
Eventually, all TUs that call schedule() should themselves include
u-boot/schedule.h, but this is a step towards getting rid of
unnecessary include statements in cyclic.h and global_data.h.
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | include/watchdog.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |