]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cyclic: make cyclic_run static
authorRasmus Villemoes <ravi@prevas.dk>
Thu, 3 Oct 2024 21:27:56 +0000 (23:27 +0200)
committerStefan Roese <sr@denx.de>
Wed, 23 Oct 2024 04:52:38 +0000 (06:52 +0200)
The only caller left is schedule(); everybody outside cyclic.c now
calls or references schedule().

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
common/cyclic.c
include/cyclic.h

index 38d815bec357b6e7c02db854dbef3cd6c2d94af1..196797fd61ec41c5e4cf49a2cae2f45b60ee41f3 100644 (file)
@@ -45,7 +45,7 @@ void cyclic_unregister(struct cyclic_info *cyclic)
        hlist_del(&cyclic->list);
 }
 
-void cyclic_run(void)
+static void cyclic_run(void)
 {
        struct cyclic_info *cyclic;
        struct hlist_node *tmp;
index e8de616dcd51ffc7169e0a2c096bd4f7d17af8f5..c6c463d68e9de32f7d4ef969da47d2ff2138bcd5 100644 (file)
@@ -87,14 +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);
-
 #else
 
 static inline void cyclic_register(struct cyclic_info *cyclic, cyclic_func_t func,
@@ -106,10 +98,6 @@ static inline void cyclic_unregister(struct cyclic_info *cyclic)
 {
 }
 
-static inline void cyclic_run(void)
-{
-}
-
 static inline int cyclic_unregister_all(void)
 {
        return 0;