Patch 2/3: Reduce number of get_cmos_time_calls.

From: Nigel Cunningham
Date: Sat Jan 08 2005 - 05:08:24 EST


Change sleep_start from signed to unsigned long. This appears to address
an issue with the clock being occasionally off by around 1 hr 10
minutes.

Signed-off-by: Nigel Cunningham <ncunningham@xxxxxxxxxxxxx>

diff -ruNp 912-old/arch/i386/kernel/time.c 912-new/arch/i386/kernel/time.c
--- 912-old/arch/i386/kernel/time.c 2005-01-08 19:38:33.786012992 +1100
+++ 912-new/arch/i386/kernel/time.c 2005-01-08 19:38:15.058859952 +1100
@@ -319,7 +319,8 @@ unsigned long get_cmos_time(void)
return retval;
}

-static long clock_cmos_diff, sleep_start;
+static long clock_cmos_diff;
+static unsigned long sleep_start;

static int timer_suspend(struct sys_device *dev, u32 state)
{


-
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/