lkml.org 
[lkml]   [2008]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] HPET: Workaround for a BIOS workaround on AMD SB700 platform

    small build fix:

    From c107f81791afa9f749cf242944c90a18faf69fda Mon Sep 17 00:00:00 2001
    From: Ingo Molnar <mingo@elte.hu>
    Date: Thu, 14 Aug 2008 11:03:24 +0200
    Subject: [PATCH] x86, hpet: workaround for a BIOS workaround on AMD SB700 platform, fix

    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@elte.hu>
    ---
    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


    \
     
     \ /
      Last update: 2008-08-14 11:07    [W:0.025 / U:63.048 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site