DragonFly BSD
DragonFly commits List (threaded) for 2013-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: clock/tsc: Detect invariant TSC


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Jun 2013 01:39:39 -0700 (PDT)

commit 5a81b19fbd3150677df0f28d6fe44cfe071533d0
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]