Re: High pitched noise from laptop: processor.c in linux 2.6

From: Alan Cox
Date: Sat Oct 16 2004 - 22:26:10 EST


On Sul, 2004-10-17 at 02:24, Lee Revell wrote:
> > And heavily reduced accuracy on a lot of laptops where 1000Hz
> > is enough to make the clock slide every time the battery state is
> > queried or an SMM event triggers.
> Wouldn't such a laptop be horribly broken? 1ms is a LONG time to
> disable interrupts. That's millions of CPU cycles...

Yes, and most laptops have this problem. They use SMM traps to talk to
the battery including huge delay loops and during those SMM traps no
interrupt code runs.

> > Getting the best of both worlds depends on the stuff discussed at OLS
> > being finished, then you can have 1Khz accurancy and battery life
> I was not there but I imagine this involves a way to get 1khz accuracy
> with a 100Hz timer interrupt rate?

Think about

add_timeout(timer, when, precision_desired)


-
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/