x86_64: Add new sysctls to set idle/spin mwait hint
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 31 Jan 2014 12:02:08 +0000 (20:02 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 31 Jan 2014 13:01:21 +0000 (21:01 +0800)
commit29b3380024526fcc6e9c163df6abfc37f0587d77
tree068b936f398959608d4c0535fa095ff6e33113b6
parentfcab10000c3c5b7ebddec8efadaa8fd33d364cc2
x86_64: Add new sysctls to set idle/spin mwait hint

These sysctls verify that the mwait hint is supported.  It's format is:
C-state/sub-state.  The valid one could be picked up from the output of
sysctl machdep.mwait.CX.supported.

Sysctls hw.cpu_mwait_{halt,spin} should be deprecated.

While I'm here, rearrange cpu_mwait_hint_valid() a little bit.
sys/platform/pc64/x86_64/machdep.c