Displaying 1 result from an estimated 1 matches for "do_poweroff".
2013 Nov 08
4
[PATCH 3/4] xen/manage: Guard against user-space initiated poweroff and XenBus.
...ble, we need to freeze all the processes
@@ -173,7 +181,7 @@ out_thaw:
thaw_processes();
out:
#endif
- shutting_down = SHUTDOWN_INVALID;
+ atomic_set(&shutting_down, SHUTDOWN_INVALID);
}
#endif /* CONFIG_HIBERNATE_CALLBACKS */
@@ -184,7 +192,7 @@ struct shutdown_handler {
static void do_poweroff(void)
{
- shutting_down = SHUTDOWN_POWEROFF;
+ atomic_set(&shutting_down, SHUTDOWN_POWEROFF);
switch (system_state) {
case SYSTEM_BOOTING:
orderly_poweroff(true);
@@ -201,7 +209,7 @@ static void do_poweroff(void)
static void do_reboot(void)
{
- shutting_down = SHUTDOWN_POWEROFF; /*...