diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 15:05:54 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 15:05:54 +0100 |
commit | c12bbde846af61d1b8441da6c627181ccbc7a157 (patch) | |
tree | 7b8a9e3598e5ad236745f0eca8379530ca88f792 /xen/common/cpu.c | |
parent | 852ed0aaf07ad074ac111b1a432de5b816aad7fd (diff) | |
download | xen-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.c | 2 |
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); |