netkvm: add 'PoweringOff' notification
Define this notification message and propagate it to all
the registered onservers on start of 'Suspend' flow.
None of existing observers has action on this message.
@@ -8,7 +8,8 @@ enum SMNotifications {
stopped,
SupriseRemoved,
NeedsReset,
- PoweredOn
+ PoweredOn,
+ PoweringOff
};
class CFlowStateMachine : public CPlacementAllocatable
@@ -299,6 +300,7 @@ public:
{
ChangeState(MiniportState::Suspended, MiniportState::Paused);
}
+ UpdateFlowsOnEvent(SMNotifications::PoweringOff);
}
void NotifyHalted()
