acpi/cstate: Detect and fix duplicated C-states
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 15 Mar 2015 11:28:40 +0000 (19:28 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 16 Mar 2015 02:43:32 +0000 (10:43 +0800)
commit4221f7280cb32cbd2292001d52653e01a71872c9
tree682b1eb99e316f1abc738e39eae3a24d4de1c91f
parentd66b88f39a3fa6f69804b7329dfaccfb15642746
acpi/cstate: Detect and fix duplicated C-states

Some buggy BIOSes create two C2 states, however, the latter one is
obviously C3.  Add tunable hw.acpi.cpu.cst.check_duplicated to detect
and fix this bug; it is not enabled by default.
sys/dev/acpica/acpi_cpu_cstate.c