diff options
author | William A. Kennington III <wak@google.com> | 2018-05-23 17:13:27 -0700 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-06-01 02:07:26 -0500 |
commit | 27dec8f85b684ce85bb12d71d1e4432d0c835e52 (patch) | |
tree | b5a29faff8765d8a3f812beed7e0b82b27a70613 /hw/ipmi | |
parent | 5cc781de88032d7e4c5e36399098d54e3cefd126 (diff) | |
download | skiboot-27dec8f85b684ce85bb12d71d1e4432d0c835e52.zip skiboot-27dec8f85b684ce85bb12d71d1e4432d0c835e52.tar.gz skiboot-27dec8f85b684ce85bb12d71d1e4432d0c835e52.tar.bz2 |
ipmi-watchdog: WD_POWER_CYCLE_ACTION -> WD_RESET_ACTION
The IPMI specification denotes that action 0x1 is Host Reset and 0x3 is
Host Power Cycle. Use the correct name for Reset in our watchdog code.
Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/ipmi')
-rw-r--r-- | hw/ipmi/ipmi-watchdog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ipmi/ipmi-watchdog.c b/hw/ipmi/ipmi-watchdog.c index 55c3bf5..966d10d 100644 --- a/hw/ipmi/ipmi-watchdog.c +++ b/hw/ipmi/ipmi-watchdog.c @@ -31,7 +31,7 @@ /* WDT expiration actions */ #define WDT_PRETIMEOUT_SMI 0x10 -#define WDT_POWER_CYCLE_ACTION 0x01 +#define WDT_RESET_ACTION 0x01 #define WDT_NO_ACTION 0x00 /* How long to set the overall watchdog timeout for. In units of @@ -122,7 +122,7 @@ void ipmi_wdt_final_reset(void) /* todo: this is disabled while we're waiting on fixed watchdog * behaviour */ #if 0 - set_wdt(WDT_POWER_CYCLE_ACTION | WDT_PRETIMEOUT_SMI, WDT_TIMEOUT, + set_wdt(WDT_RESET_ACTION | WDT_PRETIMEOUT_SMI, WDT_TIMEOUT, WDT_MARGIN/10); reset_wdt(NULL, (void *) 1); #endif @@ -134,7 +134,7 @@ void ipmi_wdt_final_reset(void) void ipmi_wdt_init(void) { init_timer(&wdt_timer, reset_wdt, NULL); - set_wdt(WDT_POWER_CYCLE_ACTION, WDT_TIMEOUT, 0); + set_wdt(WDT_RESET_ACTION, WDT_TIMEOUT, 0); /* Start the WDT. We do it synchronously to make sure it has * started before skiboot continues booting. Otherwise we |