aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorCon Kolivas <kernel@kolivas.org>2005-01-07 21:45:40 -0800
committerLinus Torvalds <torvalds@evo.osdl.org>2005-01-07 21:45:40 -0800
commita2e135bbe17c364910f9552ab456cd1f1622bb81 (patch)
tree86201225566d72a968a342eae898c73fd7bfb518 /kernel
parent672eb0e11424ca70cd17633991483e5afb111607 (diff)
downloadhistory-a2e135bbe17c364910f9552ab456cd1f1622bb81.tar.gz
[PATCH] sched: alter_kthread_prio
Timeslice proportion has been increased substantially for -niced tasks. As a result of this kernel threads have much larger timeslices than they previously had. Change kernel threads' nice value to -5 to bring their timeslice back in line with previous behaviour. This means kernel threads will be less likely to cause large latencies under periods of system stress for normal nice 0 tasks. 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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 9e08e0c343f8c3..2f7771dc63ec74 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -188,7 +188,7 @@ static int worker_thread(void *__cwq)
current->flags |= PF_NOFREEZE;
- set_user_nice(current, -10);
+ set_user_nice(current, -5);
/* Block and flush all signals */
sigfillset(&blocked);