git: clock/tsc: Detect invariant TSC

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Jun 19 01:39:39 PDT 2013


commit 5a81b19fbd3150677df0f28d6fe44cfe071533d0
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Jun 19 16:37:55 2013 +0800

    clock/tsc: Detect invariant TSC
    
    According to Intel's description:
    "The invariant TSC will run at a constant rate in all ACPI P-, C-. "
     and T-states. ..."
    
    The difference between invariant TSC and constant TSC is that
    invariant TSC is not affected by frequency changes and deep ACPI
    C-state.
    
    Constant TSC could be detected based on the CPU model (Intel has
    the model list, while there is no information from AMD's document);
    constant TSC is not detected yet.

Summary of changes:
 sys/platform/pc32/include/clock.h          |  1 +
 sys/platform/pc32/isa/clock.c              | 27 +++++++++++++++++++++------
 sys/platform/pc64/include/clock.h          |  1 +
 sys/platform/pc64/isa/clock.c              | 27 +++++++++++++++++++++------
 sys/platform/vkernel/include/clock.h       |  1 +
 sys/platform/vkernel/platform/init.c       |  3 +++
 sys/platform/vkernel/platform/systimer.c   |  2 ++
 sys/platform/vkernel64/include/clock.h     |  1 +
 sys/platform/vkernel64/platform/init.c     |  3 +++
 sys/platform/vkernel64/platform/systimer.c |  2 ++
 10 files changed, 56 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5a81b19fbd3150677df0f28d6fe44cfe071533d0


-- 
DragonFly BSD source repository



More information about the Commits mailing list