[PATCH 3/3] Fix sysdev time support

From: Nigel Cunningham
Date: Thu Nov 11 2004 - 18:28:01 EST

Fix type of sleep_start, so as to eliminate clock skew due to math errors.

diff -ruN 992-old/arch/i386/kernel/time.c 992-new/arch/i386/kernel/time.c
--- 992-old/arch/i386/kernel/time.c 2004-11-12 09:19:22.219857040 +1100
+++ 992-new/arch/i386/kernel/time.c 2004-11-12 09:13:12.000000000 +1100
@@ -319,7 +319,8 @@
return retval;

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

static int time_suspend(struct sys_device *dev, u32 state)

Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901

You see, at just the right time, when we were still powerless, Christ
died for the ungodly. -- Romans 5:6

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/