Re: 2.6.10-mm2: swsusp regression [update]

From: Pavel Machek
Date: Wed Jan 12 2005 - 20:22:34 EST


Hi!

> [-- snip --]
> > > > > The regression is caused by the timer driver. Obviously, turning
> > > > > timer_resume() in arch/x86_64/kernel/time.c into a NOOP makes it go
> > > > > away.
> [-- snip --]
> > > >
> > > > ..you might want to look at i386 time code, they have common
> > > > ancestor, and i386 one seems to work.
>
> Well, I've changed timer_resume() in arch/x86_64/kernel/time.c into the
> following function:

Ugh, looking at arch/i386/kernel/time.c... "This could have never
worked".

It does something like get_cmos_time() - get_cmos_time()*HZ. It looks
seriously wrong.

> (for example - the second number is always negative and huge). Would it mean
> that get_cmos_time() needs fixing?

get_cmos_time() looks okay, but timer){suspend,resume} looks
hopelessly broken.

Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
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/