diff options
Diffstat (limited to 'include/asm-x86_64/apic.h')
-rw-r--r-- | include/asm-x86_64/apic.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/asm-x86_64/apic.h b/include/asm-x86_64/apic.h index 5647b7de1749..4f6a4dc455bb 100644 --- a/include/asm-x86_64/apic.h +++ b/include/asm-x86_64/apic.h | |||
@@ -42,11 +42,6 @@ static __inline void apic_write(unsigned long reg, unsigned int v) | |||
42 | *((volatile unsigned int *)(APIC_BASE+reg)) = v; | 42 | *((volatile unsigned int *)(APIC_BASE+reg)) = v; |
43 | } | 43 | } |
44 | 44 | ||
45 | static __inline void apic_write_atomic(unsigned long reg, unsigned int v) | ||
46 | { | ||
47 | xchg((volatile unsigned int *)(APIC_BASE+reg), v); | ||
48 | } | ||
49 | |||
50 | static __inline unsigned int apic_read(unsigned long reg) | 45 | static __inline unsigned int apic_read(unsigned long reg) |
51 | { | 46 | { |
52 | return *((volatile unsigned int *)(APIC_BASE+reg)); | 47 | return *((volatile unsigned int *)(APIC_BASE+reg)); |
@@ -57,10 +52,6 @@ static __inline__ void apic_wait_icr_idle(void) | |||
57 | while ( apic_read( APIC_ICR ) & APIC_ICR_BUSY ); | 52 | while ( apic_read( APIC_ICR ) & APIC_ICR_BUSY ); |
58 | } | 53 | } |
59 | 54 | ||
60 | #define FORCE_READ_AROUND_WRITE 0 | ||
61 | #define apic_read_around(x) | ||
62 | #define apic_write_around(x,y) apic_write((x),(y)) | ||
63 | |||
64 | static inline void ack_APIC_irq(void) | 55 | static inline void ack_APIC_irq(void) |
65 | { | 56 | { |
66 | /* | 57 | /* |
@@ -71,7 +62,7 @@ static inline void ack_APIC_irq(void) | |||
71 | */ | 62 | */ |
72 | 63 | ||
73 | /* Docs say use 0 for future compatibility */ | 64 | /* Docs say use 0 for future compatibility */ |
74 | apic_write_around(APIC_EOI, 0); | 65 | apic_write(APIC_EOI, 0); |
75 | } | 66 | } |
76 | 67 | ||
77 | extern int get_maxlvt (void); | 68 | extern int get_maxlvt (void); |
@@ -113,6 +104,12 @@ extern int disable_timer_pin_1; | |||
113 | 104 | ||
114 | extern void setup_threshold_lvt(unsigned long lvt_off); | 105 | extern void setup_threshold_lvt(unsigned long lvt_off); |
115 | 106 | ||
107 | void smp_send_timer_broadcast_ipi(void); | ||
108 | void switch_APIC_timer_to_ipi(void *cpumask); | ||
109 | void switch_ipi_to_APIC_timer(void *cpumask); | ||
110 | |||
111 | #define ARCH_APICTIMER_STOPS_ON_C3 1 | ||
112 | |||
116 | #endif /* CONFIG_X86_LOCAL_APIC */ | 113 | #endif /* CONFIG_X86_LOCAL_APIC */ |
117 | 114 | ||
118 | extern unsigned boot_cpu_id; | 115 | extern unsigned boot_cpu_id; |