diff options
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/apic_32.h | 16 | ||||
-rw-r--r-- | include/asm-x86/apic_64.h | 6 | ||||
-rw-r--r-- | include/asm-x86/paravirt.h | 12 |
3 files changed, 16 insertions, 18 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 |
diff --git a/include/asm-x86/apic_64.h b/include/asm-x86/apic_64.h index 7bfad0224178..9d0c06c4df91 100644 --- a/include/asm-x86/apic_64.h +++ b/include/asm-x86/apic_64.h | |||
@@ -38,14 +38,14 @@ struct pt_regs; | |||
38 | * Basic functions accessing APICs. | 38 | * Basic functions accessing APICs. |
39 | */ | 39 | */ |
40 | 40 | ||
41 | static __inline void apic_write(unsigned long reg, unsigned int v) | 41 | static __inline void apic_write(unsigned long reg, u32 v) |
42 | { | 42 | { |
43 | *((volatile unsigned int *)(APIC_BASE+reg)) = v; | 43 | *((volatile unsigned int *)(APIC_BASE+reg)) = v; |
44 | } | 44 | } |
45 | 45 | ||
46 | static __inline unsigned int apic_read(unsigned long reg) | 46 | static __inline u32 apic_read(unsigned long reg) |
47 | { | 47 | { |
48 | return *((volatile unsigned int *)(APIC_BASE+reg)); | 48 | return *((volatile u32 *)(APIC_BASE+reg)); |
49 | } | 49 | } |
50 | 50 | ||
51 | extern void apic_wait_icr_idle(void); | 51 | extern void apic_wait_icr_idle(void); |
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index f59d370c5df4..19fd3e67b08c 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -150,9 +150,9 @@ struct pv_apic_ops { | |||
150 | * Direct APIC operations, principally for VMI. Ideally | 150 | * Direct APIC operations, principally for VMI. Ideally |
151 | * these shouldn't be in this interface. | 151 | * these shouldn't be in this interface. |
152 | */ | 152 | */ |
153 | void (*apic_write)(unsigned long reg, unsigned long v); | 153 | void (*apic_write)(unsigned long reg, u32 v); |
154 | void (*apic_write_atomic)(unsigned long reg, unsigned long v); | 154 | void (*apic_write_atomic)(unsigned long reg, u32 v); |
155 | unsigned long (*apic_read)(unsigned long reg); | 155 | u32 (*apic_read)(unsigned long reg); |
156 | void (*setup_boot_clock)(void); | 156 | void (*setup_boot_clock)(void); |
157 | void (*setup_secondary_clock)(void); | 157 | void (*setup_secondary_clock)(void); |
158 | 158 | ||
@@ -690,17 +690,17 @@ static inline void slow_down_io(void) { | |||
690 | /* | 690 | /* |
691 | * Basic functions accessing APICs. | 691 | * Basic functions accessing APICs. |
692 | */ | 692 | */ |
693 | static inline void apic_write(unsigned long reg, unsigned long v) | 693 | static inline void apic_write(unsigned long reg, u32 v) |
694 | { | 694 | { |
695 | PVOP_VCALL2(pv_apic_ops.apic_write, reg, v); | 695 | PVOP_VCALL2(pv_apic_ops.apic_write, reg, v); |
696 | } | 696 | } |
697 | 697 | ||
698 | static inline void apic_write_atomic(unsigned long reg, unsigned long v) | 698 | static inline void apic_write_atomic(unsigned long reg, u32 v) |
699 | { | 699 | { |
700 | PVOP_VCALL2(pv_apic_ops.apic_write_atomic, reg, v); | 700 | PVOP_VCALL2(pv_apic_ops.apic_write_atomic, reg, v); |
701 | } | 701 | } |
702 | 702 | ||
703 | static inline unsigned long apic_read(unsigned long reg) | 703 | static inline u32 apic_read(unsigned long reg) |
704 | { | 704 | { |
705 | return PVOP_CALL1(unsigned long, pv_apic_ops.apic_read, reg); | 705 | return PVOP_CALL1(unsigned long, pv_apic_ops.apic_read, reg); |
706 | } | 706 | } |