Re: 2.6.10-rc4-mm1 hpet compile fix for AMD64

From: Venkatesh Pallipadi
Date: Wed Oct 27 2004 - 21:33:40 EST



On Wed, Oct 27, 2004 at 03:00:37PM -0700, Badari Pulavarty wrote:
> Hi Andrew,
>
> Here is the HPET compile fix for AMD64. Without this, you
> get following link error. (without HPET)
>
> arch/x86_64/kernel/built-in.o(.text+0x6426): In function `timer_resume':
> arch/x86_64/kernel/time.c:971: undefined reference to `is_hpet_enabled'
>
>

That would be a bug introduced by my hpet-reenabling-after-suspend-resume.patch
This should be a better fix.

Thanks,
Venki

Signed-off-by:: "Venkatesh Pallipadi" <venkatesh.pallipadi@xxxxxxxxx>

--- linux-2.6.9//arch/x86_64/kernel/time.c.org 2004-10-05 15:23:44.903948384 -0700
+++ linux-2.6.9//arch/x86_64/kernel/time.c 2004-10-05 15:30:41.242655280 -0700
@@ -899,7 +899,7 @@ static int timer_resume(struct sys_devic
unsigned long flags;
unsigned long sec;

- if (is_hpet_enabled())
+ if (vxtime.hpet_address)
hpet_reenable();

sec = get_cmos_time() + clock_cmos_diff;
-
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/