[PATCH] x86, hpet: workaround for a BIOS workaround on AMD SB700 platform, fix

From: Ingo Molnar
Date: Thu Aug 14 2008 - 05:03:24 EST


fix:

arch/x86/kernel/early-quirks.c: In function 'amd_sb700_hpet':
arch/x86/kernel/early-quirks.c:105: error: 'sb700_hpet_workaround' undeclared (first use in this function)
arch/x86/kernel/early-quirks.c:105: error: (Each undeclared identifier is reported only once
arch/x86/kernel/early-quirks.c:105: error: for each function it appears in.)

which triggers in the !HPET + !HPET_TIMER case.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
include/asm-x86/hpet.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-x86/hpet.h b/include/asm-x86/hpet.h
index 8f9a4e2..261fb68 100644
--- a/include/asm-x86/hpet.h
+++ b/include/asm-x86/hpet.h
@@ -55,8 +55,6 @@
*/
#define HPET_MIN_PERIOD 100000UL

-extern int sb700_hpet_workaround;
-
/* hpet memory map physical address */
extern unsigned long hpet_address;
extern unsigned long force_hpet_address;
@@ -87,6 +85,8 @@ extern void hpet_unregister_irq_handler(rtc_irq_handler handler);

#else /* CONFIG_HPET_TIMER */

+extern int sb700_hpet_workaround;
+
static inline int hpet_enable(void) { return 0; }
static inline int is_hpet_enabled(void) { return 0; }
#define hpet_readl(a) 0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/