diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-06-02 09:57:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-15 14:42:49 +0200 |
commit | 119d453c0b40d4a477781626f944d74d439956da (patch) | |
tree | f9fab4e0334d7e89d4761adedd0ae0a6ab6895da /include | |
parent | b8ae5933bb138ad156af38fdb3226e14dc762f8f (diff) | |
download | barebox-119d453c0b40d4a477781626f944d74d439956da.tar.gz barebox-119d453c0b40d4a477781626f944d74d439956da.tar.xz |
restart: give all restart handlers a descriptive name
With incoming changes to choose a specific reset method, give all
currently unnamed "default" reset handlers a name:
- soc reset via SoC-specific means
- soc-wdt reset via SoC watchdog timer
- vector reset via jump to reset vector
- efi reset via EFI firmware
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/restart.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/restart.h b/include/restart.h index 6880b03b93..e7dd1bd2b7 100644 --- a/include/restart.h +++ b/include/restart.h @@ -12,7 +12,8 @@ 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 |