From: Zhao Yakui Date: Thu, 15 Nov 2007 09:05:05 +0000 (+0800) Subject: ACPI: Use _TSS for throttling control, when present. Add error checks. X-Git-Tag: v2.6.24-rc4~107^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bcb27217344c2c1389db3983a436e19484c2f50;p=pandora-kernel.git ACPI: Use _TSS for throttling control, when present. Add error checks. _TSS was erroneously ignored, in favor of the FADT. When TSS is used, the access width is included in the PTC control/status register. So it is unnecessary that the access bit width is multiplied by 8. At the same time the bit_offset should be considered for system I/O Access. It should be checked the bit_width and bit_offset of PTC regsiter in order to avoid the failure of system I/O access. It means that bit_width plus bit_offset can't be greater than 32. Signed-off-by: Zhao Yakui Signed-off-by: Li Shaohua Signed-off-by: Len Brown --- Reading git-diff-tree failed