kern: Add cpucounter which returns 64bit monotonic counter.
commit6b91ee436af4dea51b99748094d0ecdffd369504
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 14 Feb 2017 15:45:01 +0000 (14 23:45 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 14 Feb 2017 15:45:01 +0000 (14 23:45 +0800)
treef7c598791f6b70cf780a3eb364329af1328b8393
parent699a76d93bfaf3dd1a1b40b4f6b928393d36d222
kern: Add cpucounter which returns 64bit monotonic counter.

It will be used to:
- Simplify per-cpu raw time extraction.
- ALTQ machclk.
- Per packet timestamp for CoDel.

As of this commit, dummy cpucounter, which falls back to cputimer,
and TSC cpucounter are implemented.
sys/kern/kern_cputimer.c
sys/platform/pc64/isa/clock.c
sys/sys/systimer.h