diff options
-rw-r--r-- | kernel/sched.c | 2 |
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) |