diff options
| -rw-r--r-- | arch/x86/kernel/hpet.c | 6 | ||||
| -rw-r--r-- | include/asm-x86/hpet.h | 2 | ||||
| -rw-r--r-- | include/asm-x86/vsyscall.h | 3 |
3 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index dbe0e1d44113..078dbc6d80ec 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c | |||
| @@ -25,11 +25,7 @@ | |||
| 25 | unsigned long hpet_address; | 25 | unsigned long hpet_address; |
| 26 | static void __iomem *hpet_virt_address; | 26 | static void __iomem *hpet_virt_address; |
| 27 | 27 | ||
| 28 | /* Temporary hack. Cleanup after x86_64 clock events conversion */ | 28 | unsigned long hpet_readl(unsigned long a) |
| 29 | #undef hpet_readl | ||
| 30 | #undef hpet_writel | ||
| 31 | |||
| 32 | static inline unsigned long hpet_readl(unsigned long a) | ||
| 33 | { | 29 | { |
| 34 | return readl(hpet_virt_address + a); | 30 | return readl(hpet_virt_address + a); |
| 35 | } | 31 | } |
diff --git a/include/asm-x86/hpet.h b/include/asm-x86/hpet.h index e2976ed30b70..64446a9577dc 100644 --- a/include/asm-x86/hpet.h +++ b/include/asm-x86/hpet.h | |||
| @@ -65,6 +65,7 @@ | |||
| 65 | extern unsigned long hpet_address; | 65 | extern unsigned long hpet_address; |
| 66 | extern int is_hpet_enabled(void); | 66 | extern int is_hpet_enabled(void); |
| 67 | extern int hpet_enable(void); | 67 | extern int hpet_enable(void); |
| 68 | extern unsigned long hpet_readl(unsigned long a); | ||
| 68 | 69 | ||
| 69 | #ifdef CONFIG_HPET_EMULATE_RTC | 70 | #ifdef CONFIG_HPET_EMULATE_RTC |
| 70 | 71 | ||
| @@ -84,6 +85,7 @@ extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); | |||
| 84 | #else | 85 | #else |
| 85 | 86 | ||
| 86 | static inline int hpet_enable(void) { return 0; } | 87 | static inline int hpet_enable(void) { return 0; } |
| 88 | static inline unsigned long hpet_readl(unsigned long a) { return 0; } | ||
| 87 | 89 | ||
| 88 | #endif /* CONFIG_HPET_TIMER */ | 90 | #endif /* CONFIG_HPET_TIMER */ |
| 89 | #endif /* ASM_X86_HPET_H */ | 91 | #endif /* ASM_X86_HPET_H */ |
diff --git a/include/asm-x86/vsyscall.h b/include/asm-x86/vsyscall.h index 3b8ceb4af2cf..f01c49f5d108 100644 --- a/include/asm-x86/vsyscall.h +++ b/include/asm-x86/vsyscall.h | |||
| @@ -29,9 +29,6 @@ enum vsyscall_num { | |||
| 29 | #define VGETCPU_RDTSCP 1 | 29 | #define VGETCPU_RDTSCP 1 |
| 30 | #define VGETCPU_LSL 2 | 30 | #define VGETCPU_LSL 2 |
| 31 | 31 | ||
| 32 | #define hpet_readl(a) readl((const void __iomem *)fix_to_virt(FIX_HPET_BASE) + a) | ||
| 33 | #define hpet_writel(d,a) writel(d, (void __iomem *)fix_to_virt(FIX_HPET_BASE) + a) | ||
| 34 | |||
| 35 | extern int __vgetcpu_mode; | 32 | extern int __vgetcpu_mode; |
| 36 | extern volatile unsigned long __jiffies; | 33 | extern volatile unsigned long __jiffies; |
| 37 | 34 | ||
