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 /fs/proc/array.c | |
| parent | 14d39718ea2be95cc7197c8c94bf56142d0a306c (diff) | |
merge to the -K3 scheduler.
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index d1e5d9eede6c..a718316d7ffd 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -336,12 +336,8 @@ int proc_pid_stat(struct task_struct *task, char * buffer) /* scale priority and nice values from timeslices to -20..20 */ /* to make it look like a "normal" Unix priority/nice value */ - priority = task->prio; - if (priority >= MAX_RT_PRIO) - priority -= MAX_RT_PRIO; - else - priority = priority-100; - nice = task->__nice; + priority = task_prio(task); + nice = task_nice(task); read_lock(&tasklist_lock); ppid = task->pid ? task->p_opptr->pid : 0; |
