]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitd299283d970060a8688cbf48478e59411b06af71
tree6e4b8063442b3e020af474c2d4be124f01b0cb88
parent6e0fa1aea93c0db9da67fc43d52703835887d1a8
[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