From: Eric W. Biederman Date: Tue, 26 Jul 2005 18:10:02 +0000 (-0600) Subject: [PATCH] APM: Remove redundant call to set_cpus_allowed X-Git-Tag: v2.6.13-rc4~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=910de55c6653d76f90380c80f0b7a395f12019e3;p=profile%2Fivi%2Fkernel-x86-ivi.git [PATCH] APM: Remove redundant call to set_cpus_allowed machine_power_off now always switches to the boot cpu so there is no reason for APM to also do that. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/apm.c b/arch/i386/kernel/apm.c index 064211d..d7811c4 100644 --- a/arch/i386/kernel/apm.c +++ b/arch/i386/kernel/apm.c @@ -911,14 +911,7 @@ static void apm_power_off(void) 0xcd, 0x15 /* int $0x15 */ }; - /* - * This may be called on an SMP machine. - */ -#ifdef CONFIG_SMP /* Some bioses don't like being called from CPU != 0 */ - set_cpus_allowed(current, cpumask_of_cpu(0)); - BUG_ON(smp_processor_id() != 0); -#endif if (apm_info.realmode_power_off) { (void)apm_save_cpus();