[PATCH] sched: dont decrease idle sleep avg
authorCon Kolivas <kernel@kolivas.org>
Fri, 31 Mar 2006 10:31:26 +0000 (02:31 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:58 +0000 (12:18 -0800)
commite72ff0bb2c163eb13014ba113701bd42dab382fe
tree6e4b8063442b3e020af474c2d4be124f01b0cb88
parente7c38cb49c6cc05bc11f70d9e9889da1c4a0d37f
[PATCH] sched: dont decrease idle sleep avg

We watch for tasks that sleep extended periods and don't allow one single
prolonged sleep period from elevating priority to maximum bonus to prevent cpu
bound tasks from getting high priority with single long sleeps.  There is a
bug in the current code that also penalises tasks that already have high
priority.  Correct that bug.

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