diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-07-26 20:10:02 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 23:35:45 +0200 |
commit | 910de55c6653d76f90380c80f0b7a395f12019e3 (patch) | |
tree | 35eaa391f74232ecbb8be03a56c33a5d0aeb4cfd /arch/i386/kernel/apm.c | |
parent | [PATCH] i386 machine_power_off cleanup (diff) | |
download | linux-910de55c6653d76f90380c80f0b7a395f12019e3.tar.xz linux-910de55c6653d76f90380c80f0b7a395f12019e3.zip |
[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 <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/apm.c')
-rw-r--r-- | arch/i386/kernel/apm.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/i386/kernel/apm.c b/arch/i386/kernel/apm.c index 064211d5f41b..d7811c4e8b50 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(); |