[PATCH] sched: mc/smt power savings sched policy

S.Çağlar Onur caglar at pardus.org.tr
Sun Jul 1 09:25:19 PDT 2007


Hi;

01 Tem 2007 Paz tarihinde, Danny Kukawka şunları yazmıştı: 
> Here an updated version of the patch. I added SPEC documentation and added
> a new error 'SchedPowerNotSupported' to differ between the case where the
> machine not support the feature and where an error happen.
>
> Danny
>
>  doc/spec/hal-spec-interfaces.xml  |   24 ++++++
>  hald/linux/addons/addon-cpufreq.c |  107 ++++++++++++++++++++++++++++
>  2 files changed, 130 insertions(+), 1 deletion(-)

With 'SchedPowerNotSupported' get_sched_power_savings/set_sched_power_savings 
now raises both exceptions so i think for both functions following minor 
change needed :)

- * @raises GeneralError
+ * @raises (SchedPowerNotSupported|GeneralError)

By the way i cannot find any way to detect if machine has SMT or MC one, if 
i'm not wrong kernel not exports this information to userspace, anybody has 
any suggestion/idea?

Cheers
-- 
S.Çağlar Onur <caglar at pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/hal/attachments/20070701/a961b369/attachment.pgp 


More information about the hal mailing list