public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH: 2.6.18.1] delayacct: cpu_count in taskstats updated correctly
@ 2006-10-27  3:18 Martin Tostrup Setek
  2006-10-27  3:29 ` David Rientjes
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Tostrup Setek @ 2006-10-27  3:18 UTC (permalink / raw)
  To: nagar; +Cc: linux-kernel

from: Martin T. Setek <martitse@ifi.uio.no>

cpu_count in struct taskstats should be the same as the corresponding 
(third) value found in /proc/<pid>/schedstat
Signed-off-by: <martitse@ifi.uio.no>
---
Index: linux-2.6.18.1/kernel/delayacct.c
===================================================================
--- linux-2.6.18.1.orig/kernel/delayacct.c
+++ linux-2.6.18.1/kernel/delayacct.c
@@ -124,7 +124,7 @@ int __delayacct_add_tsk(struct taskstats
  	t2 = tsk->sched_info.run_delay;
  	t3 = tsk->sched_info.cpu_time;

-	d->cpu_count += t1;
+	d->cpu_count = t1;

  	jiffies_to_timespec(t2, &ts);
  	tmp = (s64)d->cpu_delay_total + timespec_to_ns(&ts);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-27 15:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27  3:18 [PATCH: 2.6.18.1] delayacct: cpu_count in taskstats updated correctly Martin Tostrup Setek
2006-10-27  3:29 ` David Rientjes
2006-10-27  4:47   ` Martin Tostrup Setek
2006-10-27  5:51     ` David Rientjes
2006-10-27  7:23       ` Martin Tostrup Setek
2006-10-27 15:49   ` Shailabh Nagar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox