From: Jean Delvare Date: Mon, 6 Apr 2009 14:01:46 +0000 (+0200) Subject: ACPI: Adjust Kelvin offset to match local implementation X-Git-Tag: v2.6.30-rc2~113^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13614e37e94da4606a300ee6fe25c8c4a19ee670;p=pandora-kernel.git 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 Acked-by: Zhang Rui Signed-off-by: Len Brown --- Reading git-diff-tree failed