[Kde-hardware-devel] [PATCH] solid: processor
Danny Kukawka
danny.kukawka at web.de
Mon Apr 30 22:13:40 CEST 2007
Hi,
here some changes for the processor related code in Solid.
1.) change return type of maxSpeed() from qulonglong to int since there is a
bug in the HAL spec, it should be int and the only case where this property
is currently set (in the freebsd code of HAL) it's also in.
Note: Currently the property is not mandatory in HAL and the key get never set
for the Linux backend. I work on a patch for HAL to fix this if possible.
2.) replace canThrottle() with canChangeFrequency(): Throtttling is not useful
and should never used. It reduce only the CPU performance and don't reduce
power consumption - in fact it cost more power than without throttle the CPU.
What really interesting is: can the processor change the CPU frequency
(support the machine e.g. speedstep).
The function is only a dummy for now - we need a change in HAL to set a useful
property to the processor device which indicates if CPU freq is supported. I
work also on this.
Danny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs-solid_processor.diff
Type: text/x-diff
Size: 4125 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20070430/ec0f6602/attachment.bin
More information about the Kde-hardware-devel
mailing list