diff options
Diffstat (limited to 'include/asm-x86/apic_32.h')
-rw-r--r-- | include/asm-x86/apic_32.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/asm-x86/apic_32.h b/include/asm-x86/apic_32.h index f909e2daf226..649e9a6f6683 100644 --- a/include/asm-x86/apic_32.h +++ b/include/asm-x86/apic_32.h | |||
@@ -51,25 +51,23 @@ extern int local_apic_timer_disabled; | |||
51 | #define setup_secondary_clock setup_secondary_APIC_clock | 51 | #define setup_secondary_clock setup_secondary_APIC_clock |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | static __inline fastcall void native_apic_write(unsigned long reg, | 54 | static __inline fastcall void native_apic_write(unsigned long reg, u32 v) |
55 | unsigned long v) | ||
56 | { | 55 | { |
57 | *((volatile unsigned long *)(APIC_BASE+reg)) = v; | 56 | *((volatile u32 *)(APIC_BASE + reg)) = v; |
58 | } | 57 | } |
59 | 58 | ||
60 | static __inline fastcall void native_apic_write_atomic(unsigned long reg, | 59 | static __inline fastcall void native_apic_write_atomic(unsigned long reg, u32 v) |
61 | unsigned long v) | ||
62 | { | 60 | { |
63 | xchg((volatile unsigned long *)(APIC_BASE+reg), v); | 61 | (void) xchg((u32 *)(APIC_BASE + reg), v); |
64 | } | 62 | } |
65 | 63 | ||
66 | static __inline fastcall unsigned long native_apic_read(unsigned long reg) | 64 | static __inline fastcall u32 native_apic_read(unsigned long reg) |
67 | { | 65 | { |
68 | return *((volatile unsigned long *)(APIC_BASE+reg)); | 66 | return *((volatile u32 *)(APIC_BASE + reg)); |
69 | } | 67 | } |
70 | 68 | ||
71 | extern void apic_wait_icr_idle(void); | 69 | extern void apic_wait_icr_idle(void); |
72 | extern unsigned long safe_apic_wait_icr_idle(void); | 70 | extern u32 safe_apic_wait_icr_idle(void); |
73 | extern int get_physical_broadcast(void); | 71 | extern int get_physical_broadcast(void); |
74 | 72 | ||
75 | #ifdef CONFIG_X86_GOOD_APIC | 73 | #ifdef CONFIG_X86_GOOD_APIC |