Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/control/control.c
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
xctrl_reboot() | xctrl_reboot() | ||||
{ | { | ||||
shutdown_nice(0); | shutdown_nice(0); | ||||
} | } | ||||
#if defined(__aarch64__) || defined(__arm__) | |||||
static void | static void | ||||
xctrl_suspend() | xctrl_suspend() | ||||
{ | { | ||||
printf("WARNING: xen/control: Suspend not supported!\n"); | |||||
} | |||||
#else /* !__aarch64__ && !__arm__ */ | |||||
static void | |||||
xctrl_suspend() | |||||
{ | |||||
#ifdef SMP | #ifdef SMP | ||||
cpuset_t cpu_suspend_map; | cpuset_t cpu_suspend_map; | ||||
#endif | #endif | ||||
EVENTHANDLER_INVOKE(power_suspend_early); | EVENTHANDLER_INVOKE(power_suspend_early); | ||||
xs_lock(); | xs_lock(); | ||||
stop_all_proc(); | stop_all_proc(); | ||||
xs_unlock(); | xs_unlock(); | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | #endif | ||||
resume_all_proc(); | resume_all_proc(); | ||||
EVENTHANDLER_INVOKE(power_resume); | EVENTHANDLER_INVOKE(power_resume); | ||||
if (bootverbose) | if (bootverbose) | ||||
printf("System resumed after suspension\n"); | printf("System resumed after suspension\n"); | ||||
} | } | ||||
#endif /* !__aarch64__ && !__arm__ */ | |||||
static void | static void | ||||
xctrl_crash() | xctrl_crash() | ||||
{ | { | ||||
panic("Xen directed crash"); | panic("Xen directed crash"); | ||||
} | } | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |