cpu hog reading battery info
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?
Thank you very much
Matteo
-------------------------------------------------------
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_id=7477&alloc_id=16492&op=click
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Pippo Caloggero
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_id492&op=click