diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:02 -0500 |
commit | df619e6bafeb8e129aba3173d384544d7fa6e3c2 (patch) | |
tree | 4481ebe17b1dec19b9b2598e66c8bc6eea4320d3 /include/asm-x86/hpet.h | |
parent | 1ada5cba6a0318f90e45b38557e7b5206a9cba38 (diff) |
x86: offer is_hpet_enabled() on !CONFIG_HPET_TIMER too
offer is_hpet_enabled() on !CONFIG_HPET_TIMER too.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/hpet.h')
-rw-r--r-- | include/asm-x86/hpet.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86/hpet.h b/include/asm-x86/hpet.h index ad8d6e758785..624f600f7161 100644 --- a/include/asm-x86/hpet.h +++ b/include/asm-x86/hpet.h | |||
@@ -80,10 +80,11 @@ extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); | |||
80 | 80 | ||
81 | #endif /* CONFIG_HPET_EMULATE_RTC */ | 81 | #endif /* CONFIG_HPET_EMULATE_RTC */ |
82 | 82 | ||
83 | #else | 83 | #else /* CONFIG_HPET_TIMER */ |
84 | 84 | ||
85 | static inline int hpet_enable(void) { return 0; } | 85 | static inline int hpet_enable(void) { return 0; } |
86 | static inline unsigned long hpet_readl(unsigned long a) { return 0; } | 86 | static inline unsigned long hpet_readl(unsigned long a) { return 0; } |
87 | static inline int is_hpet_enabled(void) { return 0; } | ||
87 | 88 | ||
88 | #endif /* CONFIG_HPET_TIMER */ | 89 | #endif |
89 | #endif /* ASM_X86_HPET_H */ | 90 | #endif /* ASM_X86_HPET_H */ |