Re: APM driver patch summary

From: Thomas Hood (jdthood@mail.com)
Date: Sat Dec 22 2001 - 11:13:58 EST


Thanks.

I have put Andreas's idle patch, Russell King's notification patch,
and a combined patch up at:
   http://panopticon.csustan.edu/thood/apm.html

--
Thomas Hood

On Sat, 2001-12-22 at 09:44, Andreas Steinmetz wrote: > Hi, > I merged 2., 3. and 4. (attached) with some modifications. > > 1. There is now a module parameter apm-idle-threshold which allows to override > the compiled in idle percentage threshold above which BIOS idle calls are > done. > > 2. I modified Andrej's mechanism to detect a defunct BIOS (stating 'does stop > CPU' when it actually doesn't) to take into account that there's other > interrupts than the timer interrupt that could reactivate the cpu. > As there's 16 hardware interrupts on x86 (apm is arch specific anyway) I do > use a leaky bucket counter for a maximum of 16 idle rounds until jiffies is > increased. When the counter reaches zero it stays at this value and the > system idle routine is called. If BIOS idle is a noop then the counter > reaches zero fast, thus effectively halting the cpu. > > Andrej, could you please test the patch if it works for your laptop?

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



This archive was generated by hypermail 2b29 : Sun Dec 23 2001 - 21:00:27 EST