lkml.org 
[lkml]   [2004]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 3/3] Fix sysdev time support
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site