x86_64: Make sysctl hw.cpu_mwait_halt read only
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 6 Feb 2014 11:46:22 +0000 (19:46 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 6 Feb 2014 12:39:59 +0000 (20:39 +0800)
commit765f099124642e25f9520815c5e6a0214bde6d97
treed3663c6aaf2f198ec5cb082ed6fe673a82e16070
parent20641d4cc9362f4ffbdfe53d8a9cf6804351c4c2
x86_64: Make sysctl hw.cpu_mwait_halt read only

Sysctl machdep.mwait.CX.idle should be used to configure mwait hint.

Manipulate mwait hint value directly through hw.cpu_mwait_halt is not
safe, e.g. intr cputimer may need change for deep cpu specific C-state.
sys/platform/pc64/x86_64/machdep.c