All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][ 2/5] sched: remove sleepavg from proc
@ 2007-03-27  2:09 Con Kolivas
  0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2007-03-27  2:09 UTC (permalink / raw)
  To: linux kernel mailing list, ck list, Andrew Morton, Ingo Molnar

Remove the sleep_avg field from proc output as it will be removed from the
task_struct.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
---

 fs/proc/array.c |    2 --
 1 file changed, 2 deletions(-)

Index: linux-2.6.21-rc5-sd/fs/proc/array.c
===================================================================
--- linux-2.6.21-rc5-sd.orig/fs/proc/array.c	2007-03-26 11:03:31.000000000 +1000
+++ linux-2.6.21-rc5-sd/fs/proc/array.c	2007-03-27 11:52:55.000000000 +1000
@@ -165,7 +165,6 @@ static inline char * task_state(struct t
 	rcu_read_lock();
 	buffer += sprintf(buffer,
 		"State:\t%s\n"
-		"SleepAVG:\t%lu%%\n"
 		"Tgid:\t%d\n"
 		"Pid:\t%d\n"
 		"PPid:\t%d\n"
@@ -173,7 +172,6 @@ static inline char * task_state(struct t
 		"Uid:\t%d\t%d\t%d\t%d\n"
 		"Gid:\t%d\t%d\t%d\t%d\n",
 		get_task_state(p),
-		(p->sleep_avg/1024)*100/(1020000000/1024),
 	       	p->tgid, p->pid,
 	       	pid_alive(p) ? rcu_dereference(p->real_parent)->tgid : 0,
 		pid_alive(p) && p->ptrace ? rcu_dereference(p->parent)->pid : 0,

-- 
-ck

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-27  2:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27  2:09 [PATCH][ 2/5] sched: remove sleepavg from proc Con Kolivas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.