--- linux-2.4.25-wt3/drivers/acpi/system.c.old Sat Mar 6 10:22:25 2004 +++ linux-2.4.25-wt3/drivers/acpi/system.c Sat Mar 6 11:56:28 2004 @@ -40,6 +40,7 @@ #include #include #include +#include #ifdef CONFIG_X86 #ifdef CONFIG_ACPI_SLEEP @@ -95,6 +96,10 @@ { if (unlikely(in_interrupt())) BUG(); +#ifdef CONFIG_SMP + /* Some SMP machines only can poweroff in boot CPU */ + set_cpus_allowed(current, 1 << cpu_logical_map(0)); +#endif acpi_system_save_state(ACPI_STATE_S5); acpi_enter_sleep_state_prep(ACPI_STATE_S5); ACPI_DISABLE_IRQS();