aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/apic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/apic.h')
-rw-r--r--include/asm-x86/apic.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-x86/apic.h b/include/asm-x86/apic.h
index b804238489a1..b11d6524fb13 100644
--- a/include/asm-x86/apic.h
+++ b/include/asm-x86/apic.h
@@ -50,19 +50,16 @@ extern int disable_apic_timer;
50 */ 50 */
51#ifdef CONFIG_PARAVIRT 51#ifdef CONFIG_PARAVIRT
52#include <asm/paravirt.h> 52#include <asm/paravirt.h>
53extern int is_vsmp_box(void);
54#else 53#else
55#define apic_write native_apic_write 54#define apic_write native_apic_write
56#define apic_write_atomic native_apic_write_atomic 55#define apic_write_atomic native_apic_write_atomic
57#define apic_read native_apic_read 56#define apic_read native_apic_read
58#define setup_boot_clock setup_boot_APIC_clock 57#define setup_boot_clock setup_boot_APIC_clock
59#define setup_secondary_clock setup_secondary_APIC_clock 58#define setup_secondary_clock setup_secondary_APIC_clock
60static int inline is_vsmp_box(void)
61{
62 return 0;
63}
64#endif 59#endif
65 60
61extern int is_vsmp_box(void);
62
66static inline void native_apic_write(unsigned long reg, u32 v) 63static inline void native_apic_write(unsigned long reg, u32 v)
67{ 64{
68 *((volatile u32 *)(APIC_BASE + reg)) = v; 65 *((volatile u32 *)(APIC_BASE + reg)) = v;