Skip to content

Commit

Permalink
x86: offer is_hpet_enabled() on !CONFIG_HPET_TIMER too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 1ada5cb commit df619e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/asm-x86/hpet.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);

#endif /* CONFIG_HPET_EMULATE_RTC */

#else
#else /* CONFIG_HPET_TIMER */

static inline int hpet_enable(void) { return 0; }
static inline unsigned long hpet_readl(unsigned long a) { return 0; }
static inline int is_hpet_enabled(void) { return 0; }

#endif /* CONFIG_HPET_TIMER */
#endif
#endif /* ASM_X86_HPET_H */

0 comments on commit df619e6

Please sign in to comment.