diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-03-22 10:29:42 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-03-22 10:29:42 +0000 |
commit | 5bc8ad3bb763c0c0d3f0676e586838a1d478fb51 (patch) | |
tree | ee9f93e2ad33d37d0251e010049ebcc1038b9e18 | |
parent | 21980127e69600d3cbf6a0289989e29317b04c94 (diff) | |
download | xen-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.c | 2 |
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 { } |