sched: Nominate a power-efficient ilb in select_nohz_balancer()
authorGautham R Shenoy <ego@in.ibm.com>
Tue, 14 Apr 2009 04:55:35 +0000 (10:25 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Apr 2009 09:49:19 +0000 (11:49 +0200)
commite790fb0ba64bfec158e1219d899cb588275d12ab
treef4eda89681e027cd617881773ab0559d9fced430
parentf711f6090a81cbd396b63de90f415d33f563af9b
sched: Nominate a power-efficient ilb in select_nohz_balancer()

The CPU that first goes idle becomes the idle-load-balancer and remains
that until either it picks up a task or till all the CPUs of the system
goes idle.

Optimize this further to allow it to relinquish it's post
once all it's siblings in the power-aware sched_domain go idle, thereby
allowing the whole package-core to go idle. While relinquising the post,
nominate another an idle-load balancer from a semi-idle core/package.

Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20090414045535.7645.31641.stgit@sofia.in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c