]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sched: smp nice bias busy queues on idle rebalance
authorCon Kolivas <kernel@kolivas.org>
Wed, 9 Nov 2005 05:38:58 +0000 (21:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:32 +0000 (07:56 -0800)
commitcee77239642d15b69208c2c832d0e6e5e8f75950
tree5900a1fbf46d3c83aca09fca0ba664af40151082
parent8b37c151b26a6da04dc8d0323946ab828c286eef
[PATCH] sched: smp nice bias busy queues on idle rebalance

To intensify the 'nice' support across physical cpus on SMP we can bias the
loads on idle rebalancing. To prevent idle rebalance from trying to pull tasks
from queues that appear heavily loaded we only bias the load if there is more
than one task running.

Add some minor micro-optimisations and have only one return from __source_load
and __target_load functions.

Fix the fact that target_load was not biased by priority when type == 0.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c