Commit 4a1421f8 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds
Browse files

[PATCH] i386: Implement machine_emergency_reboot

set_cpus_allowed is not safe in interrupt context
and disabling apics is complicated code so don't
call machine_shutdown on i386 from emergency_restart().
Signed-off-by: default avatarEric W. Biederman <>
Signed-off-by: default avatarLinus Torvalds <>
parent 59586e5a
......@@ -311,10 +311,8 @@ void machine_shutdown(void)
void machine_restart(char * __unused)
void machine_emergency_restart(void)
if (!reboot_thru_bios) {
if (efi_enabled) {
efi.reset_system(EFI_RESET_COLD, EFI_SUCCESS, 0, NULL);
......@@ -337,6 +335,12 @@ void machine_restart(char * __unused)
machine_real_restart(jump_to_bios, sizeof(jump_to_bios));
void machine_restart(char * __unused)
void machine_halt(void)
#include <asm-generic/emergency-restart.h>
extern void machine_emergency_restart(void);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment