patch-2.1.40 linux/fs/proc/array.c

Next file: linux/include/asm-alpha/keyboard.h
Previous file: linux/fs/locks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -268,7 +268,7 @@
 	unsigned long idle;
 
 	uptime = jiffies;
-	idle = task[0]->utime + task[0]->stime;
+	idle = task[0]->times.tms_utime + task[0]->times.tms_stime;
 
 	/* The formula for the fraction parts really is ((t * 100) / HZ) % 100, but
 	   that would overflow about every five days at HZ == 100.
@@ -748,10 +748,10 @@
 		tsk->cmin_flt,
 		tsk->maj_flt,
 		tsk->cmaj_flt,
-		tsk->utime,
-		tsk->stime,
-		tsk->cutime,
-		tsk->cstime,
+		tsk->times.tms_utime,
+		tsk->times.tms_stime,
+		tsk->times.tms_cutime,
+		tsk->times.tms_cstime,
 		priority,
 		nice,
 		tsk->timeout,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov