diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-02-16 20:29:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-17 06:22:20 -0500 |
commit | 06cd9a7dc8a58186060a91b6ddc031057435fd34 (patch) | |
tree | cc015c3a966f31ef77cb458e0b480ffc0eb12acd /arch/x86/include/asm/apic.h | |
parent | 9f361c221912b6ffa1f7836e0bbf843917f6fce7 (diff) |
x86: add x2apic config
Impact: cleanup
so could deselect x2apic
and INTR_REMAP will select x2apic
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index fba49f66228f..dc1db99cd40e 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -112,7 +112,7 @@ static inline u32 native_apic_msr_read(u32 reg) | |||
112 | return low; | 112 | return low; |
113 | } | 113 | } |
114 | 114 | ||
115 | #ifndef CONFIG_X86_32 | 115 | #ifdef CONFIG_X86_X2APIC |
116 | extern int x2apic; | 116 | extern int x2apic; |
117 | extern void check_x2apic(void); | 117 | extern void check_x2apic(void); |
118 | extern void enable_x2apic(void); | 118 | extern void enable_x2apic(void); |
@@ -131,7 +131,19 @@ static inline int x2apic_enabled(void) | |||
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |
133 | #else | 133 | #else |
134 | #define x2apic_enabled() 0 | 134 | static inline void check_x2apic(void) |
135 | { | ||
136 | } | ||
137 | static inline void enable_x2apic(void) | ||
138 | { | ||
139 | } | ||
140 | static inline void enable_IR_x2apic(void) | ||
141 | { | ||
142 | } | ||
143 | static inline int x2apic_enabled(void) | ||
144 | { | ||
145 | return 0; | ||
146 | } | ||
135 | #endif | 147 | #endif |
136 | 148 | ||
137 | struct apic_ops { | 149 | struct apic_ops { |
@@ -177,7 +189,7 @@ static inline u32 safe_apic_wait_icr_idle(void) | |||
177 | 189 | ||
178 | extern int get_physical_broadcast(void); | 190 | extern int get_physical_broadcast(void); |
179 | 191 | ||
180 | #ifdef CONFIG_X86_64 | 192 | #ifdef CONFIG_X86_X2APIC |
181 | static inline void ack_x2APIC_irq(void) | 193 | static inline void ack_x2APIC_irq(void) |
182 | { | 194 | { |
183 | /* Docs say use 0 for future compatibility */ | 195 | /* Docs say use 0 for future compatibility */ |