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/include/asm-x86/smp.h | |
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/include/asm-x86/smp.h')
-rw-r--r-- | xen/include/asm-x86/smp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h index 8121f82f36..60f516c640 100644 --- a/xen/include/asm-x86/smp.h +++ b/xen/include/asm-x86/smp.h @@ -56,7 +56,7 @@ extern u32 cpu_2_logical_apicid[]; DECLARE_PER_CPU(int, cpu_state); #define cpu_is_offline(cpu) unlikely(!cpu_online(cpu)) -extern void cpu_exit_clear(void); +extern void cpu_exit_clear(unsigned int cpu); extern void cpu_uninit(unsigned int cpu); int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm); |