acpi/cstate: Allow request deeper C-state, even it has no _CST entry
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 12 Jan 2014 08:54:45 +0000 (16:54 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 12 Jan 2014 10:28:21 +0000 (18:28 +0800)
commit1d7303387db62491e19fc66b2b6a54489e361ec0
tree4f87eec5cb6a1cbbdc478c49272d0f4dd18e2007
parent41adb27fc775cb7495c637a89cd9330f5b2fdd29
acpi/cstate: Allow request deeper C-state, even it has no _CST entry

On laptop, BIOS may unveil more C-states if power cable is unplugged,
which means if you want to use these deeper C-states you will have to
re-adjust C-state sysctls.  This commit automates this kind of
"re-adjust".  Read-only sysctl nodes hw.acpi.cpuX.cx_lowest_use and
hw.acpi.cpu.cx_lowest_use are introduced to show the current deepest
C-state could be used.
sys/dev/acpica/acpi_cpu_cstate.c