summaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-05 00:12:58 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-05 00:12:58 -0800
commit908920b1d370e7a5c301d14cfce10c310be19be3 (patch)
tree25606bf2c5215cc0e25c9647612390b88622b279 /fs/proc/array.c
parentd01b7e92c0020f89b4bb33fe61c0dffab7078b42 (diff)
v2.5.1.9 -> v2.5.1.10
- Kai Germaschewski: ISDN updates - Al Viro: start moving buffer cache indexing to "struct block_device *" - Greg KH: USB update - Russell King: fix up some ARM merge issues - Ingo Molnar: scalable scheduler
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c10
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;