aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/cpu.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-18 15:05:54 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-18 15:05:54 +0100
commitc12bbde846af61d1b8441da6c627181ccbc7a157 (patch)
tree7b8a9e3598e5ad236745f0eca8379530ca88f792 /xen/common/cpu.c
parent852ed0aaf07ad074ac111b1a432de5b816aad7fd (diff)
downloadxen-c12bbde846af61d1b8441da6c627181ccbc7a157.tar.gz
xen-c12bbde846af61d1b8441da6c627181ccbc7a157.tar.bz2
xen-c12bbde846af61d1b8441da6c627181ccbc7a157.zip
x86: Pull dynamic memory allocation out of do_boot_cpu().
This has two advantages: (a) We can move the allocations to a context where we can handle failure. (b) We can implement matching deallocations on CPU offline. Only the idle vcpu structure is now not freed on CPU offline. This probably does not really matter. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/cpu.c')
-rw-r--r--xen/common/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index 7f6891b786..b7bf377e00 100644
--- a/xen/common/cpu.c
+++ b/xen/common/cpu.c
@@ -161,7 +161,7 @@ int disable_nonboot_cpus(void)
{
int cpu, error = 0;
- BUG_ON(raw_smp_processor_id() != 0);
+ BUG_ON(smp_processor_id() != 0);
cpus_clear(frozen_cpus);