• Peter Zijlstra's avatar
    sched: Simplify sched_groups_power initialization · a9c9a9b6
    Peter Zijlstra authored
    Again, instead of relying on knowing the possible domains and their
    order, simply rely on the sched_domain tree and whatever domains are
    present in there to initialize the sched_group cpu_power.
    
    Note: we need to iterate the CPU mask backwards because of the
    cpumask_first() condition for iterating up the tree. By iterating the
    mask backwards we ensure all groups of a domain are set-up before
    starting on the parent groups that rely on its children to be
    completely done.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Nick Piggin <npiggin@kernel.dk>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Link: http://lkml.kernel.org/r/20110407122942.187335414@chello.nlSigned-off-by: default avatarIngo Molnar <mingo@elte.hu>
    a9c9a9b6
sched.c 222 KB