acpi/cstate: Match C-states of the hyperthreads on the same core
commitdaa63909298d0c4043adbe1eeaf4e0e729ec1f22
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 16 Mar 2015 14:23:06 +0000 (16 22:23 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 18 Mar 2015 12:19:16 +0000 (18 20:19 +0800)
tree339ef7b2c69a2be3ae4870d73d98f3593d1e12f8
parent9b975f118e1e8b01c5e7b376dabf6b1dce647355
acpi/cstate: Match C-states of the hyperthreads on the same core

Some stupid BIOSes set different C-states for hyperthreads on the same
core, which prevents the core from entering deep C-states, since not
all hyperthreads of the core are in the deep C-states.

We fix this by using same number of C-states for hyperthreads on the
same core; the hyperthread w/ more C-states is taken as master.
sys/dev/acpica/acpi_cpu_cstate.c