Change CPU time statistics (cputime) to be accounted on a per-CPU basis.
authorHiten Pandya <hmp@dragonflybsd.org>
Wed, 27 Apr 2005 14:31:19 +0000 (14:31 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Wed, 27 Apr 2005 14:31:19 +0000 (14:31 +0000)
commit9eea7f0c4433f10d91f2ba34ebd4b9dba854c90f
tree3a792df92497576e992042a22e2eb0dddbabaf4a
parent8abd651d20909ec7595700360e7a0f7566f7e223
Change CPU time statistics (cputime) to be accounted on a per-CPU basis.

(a) remove struct cp_time, it was redundant since kinfo_cputime has
    been introduced; kinfo_get_sched_cputime(3) function makes use
    of the latter struct.

(b) change global definition from cp_time into cpu_time, it's now a
    #define that hides the ugliness of percpu array indexing.

(c) minor style(9) cleanups in nearby code.

Reviewed-by/discussed-with: Matthew Dillon <dillon@backplane.com>
sys/emulation/linux/i386/linprocfs/linprocfs_misc.c
sys/kern/kern_clock.c
sys/sys/dkstat.h
sys/sys/kinfo.h