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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:10 +0000 (11:45 +0900)
commit27167d0af7a2cc769763e735747b0c9833c8e947
tree7f9ed4a33487da5c71b658b75abcc5af1266b8f2
parent5cb700167b30d57d9f360a83ad1f833a1d597487
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