lkml.org 
[lkml]   [2004]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.10-rc1 broke apmd
Pavel Machek writes:
> Hi!
>
> > Starting with 2.6.10-rc1, date and time on my old APM-based
> > laptop is messed up after a resume. Specifically, Emacs and
> > xclock both make a huge forward leap and then stop updating
> > their current time displays.
> >
> > The cause is the "jiffies += sleep_length * HZ;" addition
> > to arch/i386/kernel/time.c:time_resume() which is in conflict
> > with the hwlock --hctosys that the APM daemon normally does
> > at resume.
>
> I do not understand why they interfere... time_resume should fix
> system time, then userland sets it to the right value, again. Unless
> these two happen in paralel (they should not), nothing bad should happen.
>
> Can you try to suspend, wait, launch hwclock --hctosys manually?

I disabled apmd's automatic hwlock --hctosys and ran it manually
after resume + 5 seconds: no problem. I suspect that apmd runs
really early at resume and that's why it interferes with time_resume.

/Mikael
-
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:08    [W:0.247 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site