freebsd-dev/sys/compat
Peter Wemm 7628402b07 Move the shared cp_time array (counts %sys, %user, %idle etc) to the
per-cpu area.  cp_time[] goes away and a new function creates a merged
cp_time-like array for things like linprocfs, sysctl etc.  The
atomic ops for updating cp_time[] in statclock go away, and the scope
of the thread lock is reduced.

sysctl kern.cp_time returns a backwards compatible cp_time[] array.
A new kern.cp_times sysctl returns the individual per-cpu stats.

I have pending changes to make top and vmstat optionally show per-cpu
stats.

I'm very aware that there are something like 5 or 6 other versions "out
there" for doing this - but none were handy when I needed them.

I did merge my changes with John Baldwin's, and ended up replacing a
few chunks of my stuff with his, and stealing some other code.

Reviewed by:  jhb
Partly obtained from:  jhb
2007-11-29 06:34:30 +00:00
..
freebsd32 Rework the routines to convert a 5.x+ statfs structure (with fixed-size 2007-08-28 20:28:12 +00:00
ia32 Allow the ia32 resource limits (compat.ia32.max{dsiz,ssiz,vmem} to be 2007-09-24 20:49:39 +00:00
linprocfs Move the shared cp_time array (counts %sys, %user, %idle etc) to the 2007-11-29 06:34:30 +00:00
linsysfs Add a pn_destroy field to pfs_node. This field points to a destructor 2007-03-12 12:16:52 +00:00
linux Implement LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX. 2007-11-07 16:42:52 +00:00
ndis Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
netbsd Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
opensolaris Remove some compatibility stuff that we now get from the Solaris header. 2007-11-29 00:15:08 +00:00
pecoff Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00
svr4 Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00