diff options
author | Keir Fraser <keir@xen.org> | 2010-12-15 11:57:54 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-12-15 11:57:54 +0000 |
commit | 1f87cbc575c2465a4ef76da976bf31786aaa0a0e (patch) | |
tree | ed50f1741106ff1318d2966068807ed3710814e2 /xen/arch/x86/apic.c | |
parent | 05c9759b59608a63400702e149500a50c4f3eabc (diff) | |
download | xen-1f87cbc575c2465a4ef76da976bf31786aaa0a0e.tar.gz xen-1f87cbc575c2465a4ef76da976bf31786aaa0a0e.tar.bz2 xen-1f87cbc575c2465a4ef76da976bf31786aaa0a0e.zip |
x86: adjust x2apic section placement
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/apic.c')
-rw-r--r-- | xen/arch/x86/apic.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c index c2a04e4e9f..f48c442e39 100644 --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -948,18 +948,17 @@ no_apic: return -1; } -void x2apic_setup(void) +void x2apic_ap_setup(void) +{ + if ( x2apic_enabled ) + __enable_x2apic(); +} + +void __init x2apic_bsp_setup(void) { struct IO_APIC_route_entry **ioapic_entries = NULL; uint64_t msr_content; - if ( smp_processor_id() != 0 ) - { - if ( x2apic_enabled ) - __enable_x2apic(); - return; - } - if ( !cpu_has_x2apic ) return; |