sched: clear buddies more aggressively
authorMike Galbraith <efault@gmx.de>
Wed, 28 Jan 2009 13:51:39 +0000 (14:51 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 1 Feb 2009 09:49:50 +0000 (10:49 +0100)
commita9f3e2b549f83a9cdab873abf4140be27c05a3f2
tree756fb52736f8bd1e1f8fb0a621ac58ec8e1812d3
parent1596e29773eadd96b0a5fc6e736afa52394cafda
sched: clear buddies more aggressively

It was noticed that a task could get re-elected past its run quota due to buddy
affinities. This could increase latency a little. Cure it by more aggresively
clearing buddy state.

We do so in two situations:
 - when we force preempt
 - when we select a buddy to run

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c