Konstantin Belousov 41fd9c6369 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
2010-05-24 10:23:49 +00:00
..
2010-05-24 07:04:00 +00:00
2010-05-16 22:21:33 +00:00
2010-05-24 06:01:37 +00:00
2010-05-24 07:04:00 +00:00
2010-02-21 01:12:18 +00:00