diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 13:10:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 13:10:02 -0400 |
commit | e7fd3b4669f5b835c8afce28425d9f698a558115 (patch) | |
tree | d7f254a1d75807cc8b50f416ba3bd13010913ddc /arch/x86/kernel/apm_32.c | |
parent | fc82e1d59a24cbac01c49d4eb3b28d6abc26a5f4 (diff) | |
parent | 2ae9d293b14d17f35eff624272cfecac7979a2ee (diff) |
Merge branch 'x86-trampoline-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-trampoline-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86: Fix binutils-2.21 symbol related build failures
x86-64, trampoline: Remove unused variable
x86, reboot: Fix the use of passed arguments in 32-bit BIOS reboot
x86, reboot: Move the real-mode reboot code to an assembly file
x86: Make the GDT_ENTRY() macro in <asm/segment.h> safe for assembly
x86, trampoline: Use the unified trampoline setup for ACPI wakeup
x86, trampoline: Common infrastructure for low memory trampolines
Fix up trivial conflicts in arch/x86/kernel/Makefile
Diffstat (limited to 'arch/x86/kernel/apm_32.c')
-rw-r--r-- | arch/x86/kernel/apm_32.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index 15f47f741983..9079926a5b18 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c | |||
@@ -976,20 +976,10 @@ recalc: | |||
976 | 976 | ||
977 | static void apm_power_off(void) | 977 | static void apm_power_off(void) |
978 | { | 978 | { |
979 | unsigned char po_bios_call[] = { | ||
980 | 0xb8, 0x00, 0x10, /* movw $0x1000,ax */ | ||
981 | 0x8e, 0xd0, /* movw ax,ss */ | ||
982 | 0xbc, 0x00, 0xf0, /* movw $0xf000,sp */ | ||
983 | 0xb8, 0x07, 0x53, /* movw $0x5307,ax */ | ||
984 | 0xbb, 0x01, 0x00, /* movw $0x0001,bx */ | ||
985 | 0xb9, 0x03, 0x00, /* movw $0x0003,cx */ | ||
986 | 0xcd, 0x15 /* int $0x15 */ | ||
987 | }; | ||
988 | |||
989 | /* Some bioses don't like being called from CPU != 0 */ | 979 | /* Some bioses don't like being called from CPU != 0 */ |
990 | if (apm_info.realmode_power_off) { | 980 | if (apm_info.realmode_power_off) { |
991 | set_cpus_allowed_ptr(current, cpumask_of(0)); | 981 | set_cpus_allowed_ptr(current, cpumask_of(0)); |
992 | machine_real_restart(po_bios_call, sizeof(po_bios_call)); | 982 | machine_real_restart(MRR_APM); |
993 | } else { | 983 | } else { |
994 | (void)set_system_power_state(APM_STATE_OFF); | 984 | (void)set_system_power_state(APM_STATE_OFF); |
995 | } | 985 | } |