]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit3b0bd9bc6f3b8a47853d1b1de4520de3878e8941
tree5900a1fbf46d3c83aca09fca0ba664af40151082
parentdad1c65c8000f4485d8602e1875ded77e0d72133
[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