aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/hpet.h
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@novell.com>2009-08-19 08:44:24 +0100
committerIngo Molnar <mingo@elte.hu>2009-08-21 21:55:25 +0200
commit5946fa3d5cdeb846a647a1900026af9f8b08c8b5 (patch)
treea77b8061bc2b191eb78cc663ce74aa11b8661cc8 /arch/x86/include/asm/hpet.h
parent39fe05e58c5e448601ce46e6b03900d5bf31c4b0 (diff)
x86, hpet: Simplify the HPET code
On 64-bits, using unsigned long when unsigned int suffices needlessly creates larger code (due to the need for REX prefixes), and most of the logic in hpet.c really doesn't need 64-bit operations. At once this avoids the need for a couple of type casts. Signed-off-by: Jan Beulich <jbeulich@novell.com> Cc: Shaohua Li <shaohua.li@intel.com> Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> LKML-Reference: <4A8BC9780200007800010832@vpn.id2.novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/hpet.h')
-rw-r--r--arch/x86/include/asm/hpet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/hpet.h b/arch/x86/include/asm/hpet.h
index 1c22cb05ad6..65847c578b7 100644
--- a/arch/x86/include/asm/hpet.h
+++ b/arch/x86/include/asm/hpet.h
@@ -69,7 +69,7 @@ extern int hpet_force_user;
extern int is_hpet_enabled(void);
extern int hpet_enable(void);
extern void hpet_disable(void);
-extern unsigned long hpet_readl(unsigned long a);
+extern unsigned int hpet_readl(unsigned int a);
extern void force_hpet_resume(void);
extern void hpet_msi_unmask(unsigned int irq);