aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2005-07-26 14:16:00 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-26 17:35:45 -0400
commit6660316cb7a1a2c59a73a52870490c0f782f45c1 (patch)
tree2483c25cef08d7653e38cec40b994f3cf16316f0
parent0963aba54aa26c89114dca7257acf8c938bfec8a (diff)
[PATCH] acpi_power_off: Don't switch to the boot cpu
machine_power_off on i386 and x86_64 now switch to the boot cpu out of paranoia and because the MP Specification indicates it is a good idea on reboot, so for those architectures it is a noop. I can't see anything in the acpi spec that requires you to be on the boot cpu to power off the system, so this should not be an issue for ia64. In addition ia64 has the altix a massive multi-node system where switching to the boot cpu sounds insane as we may hot removed the boot cpu. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/acpi/sleep/poweroff.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/acpi/sleep/poweroff.c b/drivers/acpi/sleep/poweroff.c
index 1fc86e6b5ab9..3d41d93a3db8 100644
--- a/drivers/acpi/sleep/poweroff.c
+++ b/drivers/acpi/sleep/poweroff.c
@@ -54,7 +54,6 @@ void acpi_power_off(void)
54 acpi_sleep_prepare(ACPI_STATE_S5); 54 acpi_sleep_prepare(ACPI_STATE_S5);
55 local_irq_disable(); 55 local_irq_disable();
56 /* Some SMP machines only can poweroff in boot CPU */ 56 /* Some SMP machines only can poweroff in boot CPU */
57 set_cpus_allowed(current, cpumask_of_cpu(0));
58 acpi_enter_sleep_state(ACPI_STATE_S5); 57 acpi_enter_sleep_state(ACPI_STATE_S5);
59} 58}
60 59