thermal: rockchip: add the set_trips function
authorCaesar Wang <wxt@rock-chips.com>
Mon, 11 Apr 2016 06:08:26 +0000 (14:08 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 15 Apr 2016 11:55:38 +0000 (19:55 +0800)
commitec24f1ae50a370c9ef7b7166156b79b4d4feee5f
treecb772e8444794265f7730b850355958b7d680a8d
parent2f8e5324ef44d0842f3db3af5fc4da761440abfb
thermal: rockchip: add the set_trips function

Whenever the current temperature is updated, the trip points immediately
below and above the current temperature are found. A sensor driver
callback `set_trips' is then called with the temperatures.
Lastly, The sensor will trigger the hardware high temperature interrupts
to increase the sampleing rate and throttle frequency to limit the temperature
rising When performing passive cooling.

Change-Id: I43d37a8431240cb7b62da7bff83464aba3c8983e
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
drivers/thermal/rockchip_thermal.c