diff options
| author | Ingo Molnar <mingo@earth2.(none)> | 2002-02-11 22:47:52 +0100 |
|---|---|---|
| committer | Ingo Molnar <mingo@earth2.(none)> | 2002-02-11 22:47:52 +0100 |
| commit | 7e54bc75751cfb3c3eb5da7bdc900b8adcc2cda4 (patch) | |
| tree | e7c1f9f373f4ede645ebf963a0448acb70a512f8 /kernel/sys.c | |
| parent | 14d39718ea2be95cc7197c8c94bf56142d0a306c (diff) | |
merge to the -K3 scheduler.
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 15e7e3455ecf..56d483f984fd 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -221,7 +221,7 @@ asmlinkage long sys_setpriority(int which, int who, int niceval) } if (error == -ESRCH) error = 0; - if (niceval < p->__nice && !capable(CAP_SYS_NICE)) + if (niceval < task_nice(p) && !capable(CAP_SYS_NICE)) error = -EACCES; else set_user_nice(p, niceval); @@ -250,7 +250,7 @@ asmlinkage long sys_getpriority(int which, int who) long niceval; if (!proc_sel(p, which, who)) continue; - niceval = 20 - p->__nice; + niceval = 20 - task_nice(p); if (niceval > retval) retval = niceval; } |
