]> git.hungrycats.org Git - linux/commitdiff
[ACPI] SMP poweroff (David Shaohua Li)
authorLen Brown <len.brown@intel.com>
Fri, 12 Mar 2004 19:03:06 +0000 (14:03 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 12 Mar 2004 19:03:06 +0000 (14:03 -0500)
http://bugzilla.kernel.org/show_bug.cgi?id=1141

drivers/acpi/sleep/poweroff.c

index 0eb181ea30aeaac27f6d0c62f63944a5f920c7ae..257e16f196c7d748f9084495c4aa2a1895020079 100644 (file)
@@ -8,11 +8,14 @@
 #include <linux/pm.h>
 #include <linux/init.h>
 #include <acpi/acpi_bus.h>
+#include <linux/sched.h>
 
 static void
 acpi_power_off (void)
 {
        printk("%s called\n",__FUNCTION__);
+       /* Some SMP machines only can poweroff in boot CPU */
+       set_cpus_allowed(current, cpumask_of_cpu(0));
        acpi_enter_sleep_state_prep(ACPI_STATE_S5);
        ACPI_DISABLE_IRQS();
        acpi_enter_sleep_state(ACPI_STATE_S5);