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

S.Çağlar Onur caglar at pardus.org.tr
Sun Jul 1 14:20:57 PDT 2007


Hi;

01 Tem 2007 Paz tarihinde, S.Çağlar Onur şunları yazmıştı: 
> > Btw. IMO this should get
> > exposed by the kernel to sysfs. (I'm can may take a look at this issue,
> > but currently to busy).
>
> Hmm, if i can i'll try to export this into sysfs and will sent to LKML :)

Further investigation shows CPU topology already exported to sysfs with 
different way :). And LKML has that discussion before (Ulrich Drepper wants 
to export that information for some glibc/openMPI optimizations which ends up 
with nothing)

So, /sys/devices/system/cpu/cpu*/topology/core_id already exports CPU core 
id's to userspace, for all CPU's if they all 0 that means machine is smt 
capable else its mc capable one.

So attached cleaned/refactored/tested patch introduces "detect_topology" 
function on top of previous one. 

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: SchedPowerSavings
Type: text/x-diff
Size: 8323 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070702/ed363229/attachment.diff 
-------------- 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/20070702/ed363229/attachment.pgp 


More information about the hal mailing list