diff options
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index c25745603e64..4ebf80ca1371 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -335,8 +335,12 @@ 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->dyn_prio; - nice = task->nice; + priority = task->prio; + if (priority >= MAX_RT_PRIO) + priority -= MAX_RT_PRIO; + else + priority = priority-100; + nice = task->__nice; read_lock(&tasklist_lock); ppid = task->pid ? task->p_opptr->pid : 0; @@ -386,7 +390,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) task->nswap, task->cnswap, task->exit_signal, - task->processor); + task->cpu); if(mm) mmput(mm); return res; |
