mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-14 05:46:58 +00:00
cyclic: make cyclic_run static
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>
This commit is contained in:
parent
e3bc477e80
commit
307449de90
2 changed files with 1 additions and 13 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue