Commit 61cbe54d9479ad98283b2dda686deae4c34b2d59
Committed by
Ingo Molnar
1 parent
172e082a91
Exists in
master
and in
4 other branches
sched: Keep kthreads at default priority
Removes kthread/workqueue priority boost, they increase worst-case desktop latencies. Signed-off-by: Mike Galbraith <efault@gmx.de> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1252486344.28645.18.camel@marge.simson.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 2 changed files with 0 additions and 6 deletions Side-by-side Diff
kernel/kthread.c
... | ... | @@ -16,8 +16,6 @@ |
16 | 16 | #include <linux/mutex.h> |
17 | 17 | #include <trace/events/sched.h> |
18 | 18 | |
19 | -#define KTHREAD_NICE_LEVEL (-5) | |
20 | - | |
21 | 19 | static DEFINE_SPINLOCK(kthread_create_lock); |
22 | 20 | static LIST_HEAD(kthread_create_list); |
23 | 21 | struct task_struct *kthreadd_task; |
... | ... | @@ -145,7 +143,6 @@ |
145 | 143 | * The kernel thread should not inherit these properties. |
146 | 144 | */ |
147 | 145 | sched_setscheduler_nocheck(create.result, SCHED_NORMAL, ¶m); |
148 | - set_user_nice(create.result, KTHREAD_NICE_LEVEL); | |
149 | 146 | set_cpus_allowed_ptr(create.result, cpu_all_mask); |
150 | 147 | } |
151 | 148 | return create.result; |
... | ... | @@ -221,7 +218,6 @@ |
221 | 218 | /* Setup a clean context for our children to inherit. */ |
222 | 219 | set_task_comm(tsk, "kthreadd"); |
223 | 220 | ignore_signals(tsk); |
224 | - set_user_nice(tsk, KTHREAD_NICE_LEVEL); | |
225 | 221 | set_cpus_allowed_ptr(tsk, cpu_all_mask); |
226 | 222 | set_mems_allowed(node_possible_map); |
227 | 223 |
kernel/workqueue.c