From 9c39cce16b271805545770a55cb36d3069613873 Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Fri, 6 Apr 2012 02:18:50 +0000 Subject: ruadd() does the summing of system and user times, so doing so again results in bogus total times, as reported by numerous ports people. ok miod@ --- sys/kern/kern_exit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index d3225d4e350..a715cd1f1b0 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.109 2012/03/23 15:51:26 guenther Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.110 2012/04/06 02:18:49 guenther Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -297,8 +297,6 @@ exit1(struct proc *p, int rv, int flags) */ calcru(&pr->ps_tu, &rup->ru_utime, &rup->ru_stime, NULL); ruadd(rup, &pr->ps_cru); - timeradd(&rup->ru_utime, &pr->ps_cru.ru_utime, &rup->ru_utime); - timeradd(&rup->ru_stime, &pr->ps_cru.ru_stime, &rup->ru_stime); /* notify interested parties of our demise and clean up */ knote_processexit(pr); @@ -552,8 +550,6 @@ proc_finish_wait(struct proc *waiter, struct proc *p) p->p_xstat = 0; rup = &waiter->p_p->ps_cru; ruadd(rup, pr->ps_ru); - timeradd(&rup->ru_utime, &pr->ps_ru->ru_utime, &rup->ru_utime); - timeradd(&rup->ru_stime, &pr->ps_ru->ru_stime, &rup->ru_stime); proc_zap(p); } } -- cgit v1.2.3