On Mon, Sep 08, 2008 at 06:56:09AM -0700, Peter Zijlstra wrote:
Peter, Almost every if() stmt/basic block in the power savings code has
comments around it. And also power-savings code is 50 lines (mostly comments)
in 320 lines of that function.
Why? Based on the power vs perf, we wanted to construct topologies
differently. Reason for the complexity is, in some of the Intel cpu's,
while the cores share the same package they have different last level caches.
So for performance, we want to differentiate based on last level caches
and for power, we want to consolidate based on the package information.
power-savings code is very small part of that nightmare :) That code
became complex over years with HT, smp-nice etc.
I haven't been following recent sched changes. I can take a look at it
and see what I can do to better organize find_busiest_group()
thanks,
suresh
--