From: Mikael Pettersson <mikpe@csd.uu.se>
To: pavel@ucw.cz
Cc: bernard@blackham.com.au, linux-kernel@vger.kernel.org, shawv@comcast.net
Subject: Re: Screwy clock after apm suspend
Date: Sat, 15 Jan 2005 19:30:49 +0100 (MET) [thread overview]
Message-ID: <200501151830.j0FIUnjR020458@harpo.it.uu.se> (raw)
On Tue, 11 Jan 2005 14:10:19 +0100, Pavel Machek wrote:
>> > Looking harder, in arch/i386/kernel/apm.c the system time is also
>> > saved and restored in a very similar way to timer_suspend/resume.
>> > Would this account for the time drift in APM mode? (sleep time being
>> > accounted for twice?)
>>
>> No, apm.c's update to xtime is absolute, just like time.c's.
>> Doing both is pointless but not harmful. (I've already tried
>> with apm.c's xtime update commented out, but the time-warp
>> bug remained.)
>>
>> My 0.02 SEK says it's the jiffies update that's broken.
>
>Okay, can you
>
>* kill jiffie update (x86-64, too)
>* remove apm.c variant
>* test it (or make someone test it) with apm?
>
>I now see the drift with acpi, too :-(. I can do the acpi testing...
I'm no longer seeing any time jumps after resumes with the
2.6.11-rc1 kernel. It looks like the wall_jiffies change in
time.c fixed the bug.
/Mikael
next reply other threads:[~2005-01-15 18:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-15 18:30 Mikael Pettersson [this message]
2005-01-16 19:47 ` Screwy clock after apm suspend Alex Romosan
-- strict thread matches above, loose matches on Subject: below --
2005-01-07 18:08 Shaw
2005-01-09 22:47 ` Pavel Machek
2005-01-10 2:15 ` Alex Romosan
2005-01-10 7:28 ` Shaw
2005-01-10 7:44 ` bernard
2005-01-10 10:57 ` Pavel Machek
2005-01-10 17:48 ` Bernard Blackham
2005-01-11 0:14 ` Pavel Machek
2005-01-11 1:10 ` Nigel Cunningham
2005-01-11 3:12 ` Pavel Machek
2005-01-11 1:16 ` Bernard Blackham
2005-01-11 3:21 ` Pavel Machek
2005-01-11 12:36 ` Mikael Pettersson
2005-01-11 13:10 ` Pavel Machek
2005-01-11 14:15 ` Mikael Pettersson
2005-01-11 20:18 ` Pavel Machek
2005-01-11 3:13 ` Stephen Rothwell
2005-01-11 3:19 ` Pavel Machek
2005-01-11 12:32 ` Mikael Pettersson
2004-12-29 11:38 Mikael Pettersson
2005-01-03 17:34 ` Pavel Machek
2004-12-29 0:29 Brannon Klopfer
2004-12-29 1:18 ` Nigel Cunningham
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=200501151830.j0FIUnjR020458@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=bernard@blackham.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=shawv@comcast.net \
/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;
as well as URLs for NNTP newsgroup(s).