summaryrefslogtreecommitdiffstats
path: root/sys/sys/resourcevar.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-05-24 10:23:49 +0000
committerkib <kib@FreeBSD.org>2010-05-24 10:23:49 +0000
commit70f08890fc1cf735f25aaa4982c4789edc7337f2 (patch)
treecd49357688cc128dd42128ed9daecb2e0f7af65e /sys/sys/resourcevar.h
parentab9f5dbe35c315e6966c118cb2076d184be6c09f (diff)
downloadFreeBSD-src-70f08890fc1cf735f25aaa4982c4789edc7337f2.zip
FreeBSD-src-70f08890fc1cf735f25aaa4982c4789edc7337f2.tar.gz
Fix the double counting of the last process thread td_incruntime
on exit, that is done once in thread_exit() and the second time in proc_reap(), by clearing td_incruntime. Use the opportunity to revert to the pre-RUSAGE_THREAD exporting of ruxagg() instead of ruxagg_locked() and use it from thread_exit(). Diagnosed and tested by: neel MFC after: 3 days
Diffstat (limited to 'sys/sys/resourcevar.h')
-rw-r--r--sys/sys/resourcevar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h
index 95a9b49..2d1c0ee 100644
--- a/sys/sys/resourcevar.h
+++ b/sys/sys/resourcevar.h
@@ -131,7 +131,7 @@ void rucollect(struct rusage *ru, struct rusage *ru2);
void rufetch(struct proc *p, struct rusage *ru);
void rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up,
struct timeval *sp);
-void ruxagg_locked(struct rusage_ext *rux, struct thread *td);
+void ruxagg(struct proc *p, struct thread *td);
int suswintr(void *base, int word);
struct uidinfo
*uifind(uid_t uid);
OpenPOWER on IntegriCloud