]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: ti-soc-thermal: freeze FSM while computing trend
authorEduardo Valentin <eduardo.valentin@ti.com>
Fri, 7 Jun 2013 19:13:13 +0000 (19:13 +0000)
committerZhang Rui <rui.zhang@intel.com>
Thu, 13 Jun 2013 02:13:52 +0000 (10:13 +0800)
commit5a98e57bb0be479029d0834a0727cc68dcc816ac
treed347e21bde9940c3e1cd593d575846762e665bd0
parent28b62fd847d1c4a1462ce22af65953eb16c5779c
thermal: ti-soc-thermal: freeze FSM while computing trend

In order to read the history buffer, it is required to
freeze BG FSM. This patch adds the missing piece of code
to freeze the FSM and also a contention area to avoid
other parts of the code to access the DTEMPs.

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-bandgap.c