ACPI thermal: Don't invalidate thermal zone if critical trip point is bad
authorThomas Renninger <trenn@suse.de>
Sat, 20 Feb 2010 10:44:27 +0000 (11:44 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 23 Feb 2010 05:43:36 +0000 (00:43 -0500)
commitfa80945269f312bc609e8384302f58b03c916e12
treea35b94464a24d0a597b81ab63e4af1b1930f238b
parent9f3a6284880ceea452903e2043c88d7226736318
ACPI thermal: Don't invalidate thermal zone if critical trip point is bad

V2: Corrected integer/long conversion.

Some BIOSes return a negative value for the critical trip point.
Especially since Windows 2006...
We currently invalidate the whole thermal zone in this case.
But it may still be needed for cooling, also without critical
trip point.

This patch invalidates the critical trip point if no _CRT
function is found or if it returns negative values, but does
not invalidate the whole thermal zone in this case.

Reference: http://bugzilla.novell.com/show_bug.cgi?id=531547

Signed-off-by: Thomas Renninger <trenn@suse.de>
Tested-by: clarkt@cnsp.com
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/thermal.c