sched: Test the CPU's capacity in wake_affine()
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 26 Aug 2014 11:06:50 +0000 (13:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Sep 2014 10:35:28 +0000 (12:35 +0200)
commitbd61c98f9b3f142cd63f9e15acfe203bec9e5f5a
tree22f81a29271fae693da87fc6df170828775c1be4
parentd3bfca1a7b028a57d648dbc0985492c6a4466ccf
sched: Test the CPU's capacity in wake_affine()

Currently the task always wakes affine on this_cpu if the latter is idle.
Before waking up the task on this_cpu, we check that this_cpu capacity is not
significantly reduced because of RT tasks or irq activity.

Use case where the number of irq and/or the time spent under irq is important
will take benefit of this because the task that is woken up by irq or softirq
will not use the same CPU than irq (and softirq) but a idle one.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: preeti@linux.vnet.ibm.com
Cc: riel@redhat.com
Cc: Morten.Rasmussen@arm.com
Cc: efault@gmx.de
Cc: nicolas.pitre@linaro.org
Cc: daniel.lezcano@linaro.org
Cc: dietmar.eggemann@arm.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1409051215-16788-8-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c