]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i386/x8664: cleanup the shared hpet code
authorChris Wright <chrisw@sous-sol.org>
Fri, 12 Oct 2007 21:04:23 +0000 (23:04 +0200)
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>
Fri, 12 Oct 2007 21:04:23 +0000 (23:04 +0200)
Remove hpet_readl/writel from vsyscall.h, where it does not belong
anyway. Use the hpet code itself.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
arch/x86/kernel/hpet.c
include/asm-x86/hpet.h
include/asm-x86/vsyscall.h

index dbe0e1d44113498d6e4bfb4b3ba752ed11619378..078dbc6d80ec6644aab7c296324a2ffc5a1c4ef3 100644 (file)
 unsigned long hpet_address;
 static void __iomem *hpet_virt_address;
 
-/* Temporary hack. Cleanup after x86_64 clock events conversion */
-#undef hpet_readl
-#undef hpet_writel
-
-static inline unsigned long hpet_readl(unsigned long a)
+unsigned long hpet_readl(unsigned long a)
 {
        return readl(hpet_virt_address + a);
 }
index e2976ed30b70306f824c02222721c2497851564a..64446a9577dc465aa83f5edfba4a04d4b6f88807 100644 (file)
@@ -65,6 +65,7 @@
 extern unsigned long hpet_address;
 extern int is_hpet_enabled(void);
 extern int hpet_enable(void);
+extern unsigned long hpet_readl(unsigned long a);
 
 #ifdef CONFIG_HPET_EMULATE_RTC
 
@@ -84,6 +85,7 @@ extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);
 #else
 
 static inline int hpet_enable(void) { return 0; }
+static inline unsigned long hpet_readl(unsigned long a) { return 0; }
 
 #endif /* CONFIG_HPET_TIMER */
 #endif /* ASM_X86_HPET_H */
index 3b8ceb4af2cf6045290d79570187bd5f2206556b..f01c49f5d108d50666535d0fb1e52cc1bdc97c2d 100644 (file)
@@ -29,9 +29,6 @@ enum vsyscall_num {
 #define VGETCPU_RDTSCP 1
 #define VGETCPU_LSL    2
 
-#define hpet_readl(a)           readl((const void __iomem *)fix_to_virt(FIX_HPET_BASE) + a)
-#define hpet_writel(d,a)        writel(d, (void __iomem *)fix_to_virt(FIX_HPET_BASE) + a)
-
 extern int __vgetcpu_mode;
 extern volatile unsigned long __jiffies;