ACPI: Adjust Kelvin offset to match local implementation
authorJean Delvare <khali@linux-fr.org>
Mon, 6 Apr 2009 14:01:46 +0000 (16:01 +0200)
committerLen Brown <len.brown@intel.com>
Tue, 7 Apr 2009 05:37:27 +0000 (01:37 -0400)
commit13614e37e94da4606a300ee6fe25c8c4a19ee670
tree648a67c5436fde7470b59965198e96bb6e2c399f
parentd508afb437daee7cf07da085b635c44a4ebf9b38
ACPI: Adjust Kelvin offset to match local implementation

The exact offset between Kelvin and degree Celsius is 273.15. However
ACPI handles temperature values with a single decimal place. As a
consequence, some implementations use an offset of 273.1 and others
use an offset of 273.2. Try to find out which one is being used, to
present the most accurate and visually appealing number.

Tested on a Sony Vaio PGC-GR214EP (which uses 273.1) and a Lenovo
Thinkpad T60p (which uses 273.2).

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/thermal.c