From: Nigel Cunningham <ncunningham@linuxmail.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Pavel Machek <pavel@ucw.cz>, John Stultz <johnstul@us.ibm.com>,
David Shaohua <shaohua.li@intel.com>
Subject: Patch 2/3: Reduce number of get_cmos_time_calls.
Date: Sat, 08 Jan 2005 20:42:16 +1100 [thread overview]
Message-ID: <1105177184.5478.39.camel@desktop.cunninghams> (raw)
In-Reply-To: <1105176732.5478.20.camel@desktop.cunninghams>
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@linuxmail.org>
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)
{
next prev parent reply other threads:[~2005-01-08 9:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-08 9:42 [RFC] Patches to reduce delay in arch/kernel/time.c Nigel Cunningham
2005-01-08 9:42 ` Patch 1/3: Reduce number of get_cmos_time_calls Nigel Cunningham
2005-01-08 13:21 ` Pavel Machek
2005-01-08 9:42 ` Nigel Cunningham [this message]
2005-01-08 13:22 ` Patch 2/3: " Pavel Machek
2005-01-08 9:42 ` Patch 3/3: " Nigel Cunningham
2005-01-08 13:27 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1105177184.5478.39.camel@desktop.cunninghams \
--to=ncunningham@linuxmail.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=shaohua.li@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome