aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-03-22 10:29:42 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-03-22 10:29:42 +0000
commit5bc8ad3bb763c0c0d3f0676e586838a1d478fb51 (patch)
treeee9f93e2ad33d37d0251e010049ebcc1038b9e18
parent21980127e69600d3cbf6a0289989e29317b04c94 (diff)
downloadxen-5bc8ad3bb763c0c0d3f0676e586838a1d478fb51.tar.gz
xen-5bc8ad3bb763c0c0d3f0676e586838a1d478fb51.tar.bz2
xen-5bc8ad3bb763c0c0d3f0676e586838a1d478fb51.zip
No cpu_add_remove_lock in do_boot_cpu.
The do_boot_cpu() will be called when system booting or CPU online. When system booting, we don't need hold this lock. When system online, the lock is held already by cpu_up. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
-rw-r--r--xen/arch/x86/smpboot.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c
index 98f2c1155c..fcac97419a 100644
--- a/xen/arch/x86/smpboot.c
+++ b/xen/arch/x86/smpboot.c
@@ -985,10 +985,8 @@ static int __devinit do_boot_cpu(int apicid, int cpu)
cpucount--;
/* Mark the CPU as non-present */
- spin_lock(&cpu_add_remove_lock);
x86_cpu_to_apicid[cpu] = BAD_APICID;
cpu_clear(cpu, cpu_present_map);
- spin_unlock(&cpu_add_remove_lock);
} else {
}