Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5873
b: refs/heads/master
c: 024f474
h: refs/heads/master
i:
  5871: b2363cb
v: v3
  • Loading branch information
Matt Mackall authored and Linus Torvalds committed Aug 18, 2005
1 parent 37b7a99 commit fd3be5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cbe9de7a4353d1a1b77887b5459ac5304c0984a
refs/heads/master: 024f474795af7a0d41bd6d60061d78bd66d13f56
4 changes: 2 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3378,8 +3378,8 @@ EXPORT_SYMBOL(set_user_nice);
*/
int can_nice(const task_t *p, const int nice)
{
/* convert nice value [19,-20] to rlimit style value [0,39] */
int nice_rlim = 19 - nice;
/* convert nice value [19,-20] to rlimit style value [1,40] */
int nice_rlim = 20 - nice;
return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur ||
capable(CAP_SYS_NICE));
}
Expand Down

0 comments on commit fd3be5e

Please sign in to comment.