From: Caesar Wang Date: Sun, 25 Jan 2015 02:11:11 +0000 (+0800) Subject: thermal: rockchip: make temperature reporting much more accurate X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~32^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e9a1aea7a05a1c8a7ece72b02d8077089f9e4d5;p=pandora-kernel.git thermal: rockchip: make temperature reporting much more accurate In general, the kernel should report temperature readings exactly as reported by the hardware. The cpu / gpu thermal driver works in 5 degree increments,but we ought to do more accurate. The temperature will do linear interpolation between the entries in the table. Test= $md5sum /dev/zero & $while true; do grep "" /sys/class/thermal/thermal_zone[1-2]/temp; sleep .5; done e.g. We can get the result as follows: /sys/class/thermal/thermal_zone1/temp:39994 /sys/class/thermal/thermal_zone2/temp:39086 /sys/class/thermal/thermal_zone1/temp:39994 /sys/class/thermal/thermal_zone2/temp:39540 /sys/class/thermal/thermal_zone1/temp:39540 /sys/class/thermal/thermal_zone2/temp:39540 /sys/class/thermal/thermal_zone1/temp:39540 /sys/class/thermal/thermal_zone2/temp:39994 Reviewed-by: Dmitry Torokhov Reviewed-by: Daniel Kurtz Signed-off-by: Caesar Wang Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed