summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Roese <[email protected]>2022-09-02 14:10:45 +0200
committerStefan Roese <[email protected]>2022-09-18 10:26:28 +0200
commit881d4108257a45ac890ef27c523783dbe401e462 (patch)
treeb43d71df57f3e29b5cf2eb5c46731c8c2bede75b /include
parentc2fd0ca1a8226903e6e00f970c58f23742d6a418 (diff)
cyclic: Introduce schedule() function
This patch introduces a schedule() function, which shall be used instead of the old WATCHDOG_RESET. Follow-up patches will make sure, that this new function is used. Signed-off-by: Stefan Roese <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Tom Rini <[email protected]> [am335x_evm, mx6cuboxi, rpi_3,dra7xx_evm, pine64_plus, am65x_evm, j721e_evm]
Diffstat (limited to 'include')
-rw-r--r--include/cyclic.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cyclic.h b/include/cyclic.h
index 23902234cc8..76016364334 100644
--- a/include/cyclic.h
+++ b/include/cyclic.h
@@ -106,6 +106,14 @@ struct list_head *cyclic_get_list(void);
* 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 struct cyclic_info *cyclic_register(cyclic_func_t func,
uint64_t delay_us,
@@ -124,6 +132,10 @@ static inline void cyclic_run(void)
{
}
+static inline void schedule(void)
+{
+}
+
static inline int cyclic_init(void)
{
return 0;