]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Check if cpu can be onlined before calling smp_prepare_cpu()
authorAshok Raj <ashok.raj@intel.com>
Sat, 25 Mar 2006 11:08:18 +0000 (03:08 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:23:01 +0000 (08:23 -0800)
commit34f361ade2fb4a869f6a7714d01c04ce4cfa75d9
treea250999fc386ddbfe3c92e4d8ffdcf2d3393134a
parentf1a1c2dc2a956c375b432d2a9a28e52ba9d81c7c
[PATCH] Check if cpu can be onlined before calling smp_prepare_cpu()

- Moved check for online cpu out of smp_prepare_cpu()

- Moved default declaration of smp_prepare_cpu() to kernel/cpu.c

- Removed lock_cpu_hotplug() from smp_prepare_cpu() to around it, since
  its called from cpu_up() as well now.

- Removed clearing from cpu_present_map during cpu_offline as it breaks
  using cpu_up() directly during a subsequent online operation.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: "Li, Shaohua" <shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/smpboot.c
drivers/base/cpu.c
include/linux/cpu.h
kernel/power/smp.c