x86_64: Detect CPU specific C-state through CPUID(5)
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 14 Jan 2014 13:22:58 +0000 (21:22 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 14 Jan 2014 13:27:35 +0000 (21:27 +0800)
commit1f9bc2562ca6a4c983333aa7f1d5741044407681
treeea66021b0724e6606b77143c6f2b3129a83d4c05
parenta85227c2439acaf38d25e7fba41fc23508a6dba9
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
sys/cpu/x86_64/include/specialreg.h
sys/platform/pc64/include/md_var.h
sys/platform/pc64/x86_64/identcpu.c
sys/platform/pc64/x86_64/initcpu.c
sys/platform/pc64/x86_64/machdep.c