jeff a7a8bac81f - Move rusage from being per-process in struct pstats to per-thread in
td_ru.  This removes the requirement for per-process synchronization in
   statclock() and mi_switch().  This was previously supported by
   sched_lock which is going away.  All modifications to rusage are now
   done in the context of the owning thread.  reads proceed without locks.
 - Aggregate exiting threads rusage in thread_exit() such that the exiting
   thread's rusage is not lost.
 - Provide a new routine, rufetch() to fetch an aggregate of all rusage
   structures from all threads in a process.  This routine must be used
   in any place requiring a rusage from a process prior to it's exit.  The
   exited process's rusage is still available via p_ru.
 - Aggregate tick statistics only on demand via rufetch() or when a thread
   exits.  Tick statistics are kept in the thread and protected by sched_lock
   until it exits.

Initial patch by:	attilio
Reviewed by:		attilio, bde (some objections), arch (mostly silent)
2007-06-01 01:12:45 +00:00
..
2007-03-16 13:39:04 +00:00
2006-03-23 08:47:28 +00:00
2006-09-21 01:38:58 +00:00
2006-08-16 09:34:56 +00:00
2006-09-22 22:11:29 +00:00
2007-04-09 22:29:13 +00:00
2005-10-03 14:06:00 +00:00
2005-12-26 22:09:09 +00:00
2007-04-03 17:57:50 +00:00
2007-05-17 16:03:14 +00:00
2007-02-06 16:24:57 +00:00
2005-12-30 11:45:07 +00:00
2007-04-15 06:30:28 +00:00
2006-03-28 16:20:29 +00:00
2006-03-28 16:20:29 +00:00
2006-11-11 16:19:12 +00:00
2007-04-21 18:11:19 +00:00
2006-11-26 11:55:48 +00:00
2006-12-20 19:26:30 +00:00
2006-03-01 06:48:31 +00:00
2006-11-29 19:08:45 +00:00