diff options
Diffstat (limited to 'include/restart.h')
-rw-r--r-- | include/restart.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/restart.h b/include/restart.h index 7ec0910e94..2d15c7598a 100644 --- a/include/restart.h +++ b/include/restart.h @@ -2,7 +2,9 @@ #ifndef __INCLUDE_RESTART_H #define __INCLUDE_RESTART_H +void restart_handlers_print(void); void __noreturn restart_machine(void); +struct restart_handler *restart_handler_get_by_name(const char *name); struct restart_handler { void (*restart)(struct restart_handler *); @@ -12,10 +14,10 @@ struct restart_handler { }; int restart_handler_register(struct restart_handler *); -int restart_handler_register_fn(void (*restart_fn)(struct restart_handler *)); +int restart_handler_register_fn(const char *name, + void (*restart_fn)(struct restart_handler *)); #define RESTART_DEFAULT_PRIORITY 100 -#define RESTART_DEFAULT_NAME "default" unsigned int of_get_restart_priority(struct device_node *node); |