thermal: ti-soc-thermal: remove external heat while extrapolating hotspot
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 29 May 2013 15:07:41 +0000 (15:07 +0000)
committerZhang Rui <rui.zhang@intel.com>
Thu, 13 Jun 2013 02:12:22 +0000 (10:12 +0800)
commit359836e1de4d32a647bf2c1f99d84d2ff0a098bd
treeaa9e1067d010db8645d3e493270339a9600d748e
parent0c1569590a6f14130b3660241580036176dba718
thermal: ti-soc-thermal: remove external heat while extrapolating hotspot

For boards that provide a PCB sensor close to SoC junction
temperature, it is possible to remove the cumulative heat
reported by the SoC temperature sensor.

This patch changes the extrapolation computation to consider
an external sensor in the extrapolation equations.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/ti-soc-thermal/ti-thermal-common.c