summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/istepdispatcher/istepdispatcher.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/initservice/istepdispatcher/istepdispatcher.C')
-rw-r--r--src/usr/initservice/istepdispatcher/istepdispatcher.C9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/initservice/istepdispatcher/istepdispatcher.C b/src/usr/initservice/istepdispatcher/istepdispatcher.C
index 76c0762b1..7ecccaa2f 100644
--- a/src/usr/initservice/istepdispatcher/istepdispatcher.C
+++ b/src/usr/initservice/istepdispatcher/istepdispatcher.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* Contributors Listed Below - COPYRIGHT 2011,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -584,9 +584,6 @@ errlHndl_t IStepDispatcher::executeAllISteps()
"not increment reboot count.");
}
- // discontinue isteps
- iv_stopIpl = true;
-
// Request BMC to do power cycle that sends shutdown
// and reset the host
requestReboot();
@@ -1377,6 +1374,10 @@ void IStepDispatcher::handleShutdownMsg(msg_t * & io_pMsg)
#ifdef CONFIG_BMC_IPMI
void IStepDispatcher::requestReboot()
{
+ // always stop dispatching isteps before calling for the reboot
+ setStopIpl();
+
+ // send a reboot message to the BMC
IPMI::initiateReboot();
}
#endif
OpenPOWER on IntegriCloud