EventLog(EVENT_XENUSER_UNSUSPENDED);
// recreate shutdown watch, as suspending deactivated the watch
- if (m_ctxt_shutdown)
- m_device->StoreRemoveWatch(m_ctxt_shutdown);
- m_ctxt_shutdown = NULL;
-
- m_device->StoreAddWatch("control/shutdown", m_evt_shutdown, &m_ctxt_shutdown);
- m_device->StoreWrite("control/feature-poweroff", "1");
- m_device->StoreWrite("control/feature-reboot", "1");
- m_device->StoreWrite("control/feature-s3", "1");
- m_device->StoreWrite("control/feature-s4", "1");
-
-
+ StopShutdownWatch();
+ StartShutdownWatch();
SetXenTime();
}