diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index fba0f29401ea..66a751ebf9d9 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -250,7 +250,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who) | |||
250 | else | 250 | else |
251 | p = current; | 251 | p = current; |
252 | if (p) { | 252 | if (p) { |
253 | niceval = 20 - task_nice(p); | 253 | niceval = nice_to_rlimit(task_nice(p)); |
254 | if (niceval > retval) | 254 | if (niceval > retval) |
255 | retval = niceval; | 255 | retval = niceval; |
256 | } | 256 | } |
@@ -261,7 +261,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who) | |||
261 | else | 261 | else |
262 | pgrp = task_pgrp(current); | 262 | pgrp = task_pgrp(current); |
263 | do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { | 263 | do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { |
264 | niceval = 20 - task_nice(p); | 264 | niceval = nice_to_rlimit(task_nice(p)); |
265 | if (niceval > retval) | 265 | if (niceval > retval) |
266 | retval = niceval; | 266 | retval = niceval; |
267 | } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); | 267 | } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); |
@@ -277,7 +277,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who) | |||
277 | 277 | ||
278 | do_each_thread(g, p) { | 278 | do_each_thread(g, p) { |
279 | if (uid_eq(task_uid(p), uid)) { | 279 | if (uid_eq(task_uid(p), uid)) { |
280 | niceval = 20 - task_nice(p); | 280 | niceval = nice_to_rlimit(task_nice(p)); |
281 | if (niceval > retval) | 281 | if (niceval > retval) |
282 | retval = niceval; | 282 | retval = niceval; |
283 | } | 283 | } |