提交 2b8f836f 编写于 作者: A Américo Wang 提交者: Ingo Molnar

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: NWANG Cong <wangcong@zeuux.org>
Acked-by: NPeter Zijlstra <peterz@infradead.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 a0a522ce
......@@ -5236,7 +5236,7 @@ SYSCALL_DEFINE1(nice, int, increment)
if (increment > 40)
increment = 40;
nice = PRIO_TO_NICE(current->static_prio) + increment;
nice = TASK_NICE(current) + increment;
if (nice < -20)
nice = -20;
if (nice > 19)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册