acpi_cpu: do not apply P_LVLx_LAT rules to latencies returned by _CST
authorSascha Wildner <saw@online.de>
Mon, 7 Nov 2011 18:23:35 +0000 (19:23 +0100)
committerSascha Wildner <saw@online.de>
Mon, 7 Nov 2011 18:23:35 +0000 (19:23 +0100)
commit4e291b37cc42836f0bbcedb67aaf25b6c94bab7a
tree5f70355facebff19b27b7f4e5ed955fd6ae428a2
parentcb22e96fca78227faf3f949d2f981c613984e066
acpi_cpu: do not apply P_LVLx_LAT rules to latencies returned by _CST

ACPI specification states that if P_LVL2_LAT >100, then a system
doesn't support C2; if P_LVL3_LAT >1000, then C3 is not supported.

But there are no such rules for Cx state data returned by _CST. If a
state is not supported it should not be included into the return
package. In other words, any latency value returned by _CST is valid,
it's up to the OS and/or user to decide whether to use it.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Taken-from:    FreeBSD (rev 212549)
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2157>
sys/dev/acpica5/acpi_cpu_cstate.c