aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorAmérico Wang <xiyou.wangcong@gmail.com>2009-02-16 05:54:21 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-16 07:45:52 -0500
commit2b8f836fb196acede88b6cc772e9057e0a9c0223 (patch)
treea34ba7ed839747eae402626b172a9b7d0a88bd87 /kernel/sched.c
parenta0a522ce3d6d8c907e45d4f2730ee8573484cc88 (diff)
sched: use TASK_NICE for task_struct
#define TASK_NICE(p) PRIO_TO_NICE((p)->static_prio) So it's better to use TASK_NICE here. Signed-off-by: WANG Cong <wangcong@zeuux.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 648154cf1117..5475d56a20f1 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5236,7 +5236,7 @@ SYSCALL_DEFINE1(nice, int, increment)
5236 if (increment > 40) 5236 if (increment > 40)
5237 increment = 40; 5237 increment = 40;
5238 5238
5239 nice = PRIO_TO_NICE(current->static_prio) + increment; 5239 nice = TASK_NICE(current) + increment;
5240 if (nice < -20) 5240 if (nice < -20)
5241 nice = -20; 5241 nice = -20;
5242 if (nice > 19) 5242 if (nice > 19)