git: kern: Add cpucounter which returns 64bit monotonic counter.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Feb 14 08:05:43 PST 2017


commit 6b91ee436af4dea51b99748094d0ecdffd369504
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Feb 14 23:45:01 2017 +0800

    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.

Summary of changes:
 sys/kern/kern_cputimer.c      | 58 +++++++++++++++++++++++++++++++++++++++++++
 sys/platform/pc64/isa/clock.c | 43 +++++++++++++++++++++++++++++++-
 sys/sys/systimer.h            | 38 ++++++++++++++++++++++++++++
 3 files changed, 138 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6b91ee436af4dea51b99748094d0ecdffd369504


-- 
DragonFly BSD source repository



More information about the Commits mailing list