sched: avoid large irq-latencies in smp-balancing
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 9 Nov 2007 21:39:39 +0000 (22:39 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 9 Nov 2007 21:39:39 +0000 (22:39 +0100)
commitb82d9fdd848abfbe7263a4ecd9bbb55e575100a6
tree7d4c525cc4bd633c84abcfd8d934c84e5dc9ce7c
parent3c90e6e99b08f01d5684a3a07cceae6a543e4fa8
sched: avoid large irq-latencies in smp-balancing

SMP balancing is done with IRQs disabled and can iterate the full rq.
When rqs are large this can cause large irq-latencies. Limit the nr of
iterations on each run.

This fixes a scheduling latency regression reported by the -rt folks.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Tested-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched.c
kernel/sysctl.c