]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00218810-2 [Thermal]Add thermal alarm function
authorAnson Huang <b20788@freescale.com>
Tue, 31 Jul 2012 16:55:23 +0000 (00:55 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:35 +0000 (14:12 +0200)
commit879f005be95fdbabf3b2b1264bb36f3a0de29474
tree3d9037b420d67f1849446e5fb0fccfe6998a2f6d
parent318ae1da9ffeb0073f4b14542e3104423ef70315
ENGR00218810-2 [Thermal]Add thermal alarm function

1. Current thermal framework use delayed work to update
temperature, but delayed work may be blocked if system is
busy with the high priority task, which will cause the thermal
protect function not working in time, so we need to add alarm
function, when temperature reach the critical point, the alarm
function will generate an interrupt to reboot system.

2. No need to read 5 times of sensor value, read once is enough.

Signed-off-by: Anson Huang <b20788@freescale.com>
drivers/mxc/thermal/thermal.c