projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a522c
)
sched: use TASK_NICE for task_struct
author
Américo Wang
<xiyou.wangcong@gmail.com>
Mon, 16 Feb 2009 10:54:21 +0000
(18:54 +0800)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 16 Feb 2009 12:45:52 +0000
(13:45 +0100)
#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>
kernel/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 648154cf1117e787c56b8dde102ec672fd0ea96f..5475d56a20f1cb9b7b47e9cebf7661e2e3890b95 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-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)