git: x86_64: Detect CPU specific C-state through CPUID(5)

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Jan 14 05:28:08 PST 2014


commit 1f9bc2562ca6a4c983333aa7f1d5741044407681
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Jan 14 21:22:58 2014 +0800

    x86_64: Detect CPU specific C-state through CPUID(5)
    
    The information is exposed through machdep.mwait sysctl nodes
    
    This could be used to:
    - Validate cpu_mwait_halt
    - Validate cpu_mwait_spin
    - Prepare to turn on C1/C2/C3 native support in ACPI _OSC evalution

Summary of changes:
 sys/cpu/x86_64/include/specialreg.h |  7 +++++++
 sys/platform/pc64/include/md_var.h  |  2 ++
 sys/platform/pc64/x86_64/identcpu.c |  6 ++++++
 sys/platform/pc64/x86_64/initcpu.c  |  2 ++
 sys/platform/pc64/x86_64/machdep.c  | 35 +++++++++++++++++++++++++++++++++++
 5 files changed, 52 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1f9bc2562ca6a4c983333aa7f1d5741044407681


-- 
DragonFly BSD source repository



More information about the Commits mailing list