Re: cpu hog reading battery info

Oisín Mac Fhearaí
2005-06-17T13:36:54Z

On Friday 17 June 2005 14:01, Pippo Caloggero wrote:
> Hi after upgrading to 2.6.11 doing a
> cat /proc/acpi/battery/BAT0/info
> hogs my cpu to the point that X and the mouse block for 1 second.
> This is especially annoyng as for example kde battery monitor do that
> every 20 secs to read battery capacity.
>
> Is it a known bug? Is there some way to dig into it?

There's the EC burst mode patch out there which replaces the busy-wait
spinlocks in drivers/acpi/ec.c with semaphores:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/to-akpm/acpi-20050601041442-dtor-KwM2v4JqSEzeGshsqgM8IUPJkLQgvAqAJm6DLlPSJJU@public.gmane.org

Maybe that'll apply for you.

Oisín

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click