debuggers.hg

changeset 21096:ab5f65e8137c

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>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 22 10:29:42 2010 +0000 (2010-03-22)
parents 4d3834df0483
children bcc09eb7379f
files xen/arch/x86/smpboot.c
line diff
     1.1 --- a/xen/arch/x86/smpboot.c	Mon Mar 22 10:29:13 2010 +0000
     1.2 +++ b/xen/arch/x86/smpboot.c	Mon Mar 22 10:29:42 2010 +0000
     1.3 @@ -985,10 +985,8 @@ static int __devinit do_boot_cpu(int api
     1.4  		cpucount--;
     1.5  
     1.6  		/* Mark the CPU as non-present */
     1.7 -		spin_lock(&cpu_add_remove_lock);
     1.8  		x86_cpu_to_apicid[cpu] = BAD_APICID;
     1.9  		cpu_clear(cpu, cpu_present_map);
    1.10 -		spin_unlock(&cpu_add_remove_lock);
    1.11  	} else {
    1.12  	}
    1.13