thermal: rockchip: add the set_trips function
authorCaesar Wang <wxt@rock-chips.com>
Wed, 22 Jun 2016 08:42:05 +0000 (16:42 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 19 Aug 2016 06:46:32 +0000 (14:46 +0800)
commitd7ec12fb44c1a4c70a9f0074cbb34713994f0cf8
treed1b79b0823cd5f5f9ffb6581422c547dac91bce3
parentb1fd0ca4bcc55c9507daf82ac58560766cb079f9
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.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: linux-pm@vger.kernel.org
Tested-by: Stephen Barber <smbarber@chromium.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rockchip_thermal.c
This page took 0.024261 seconds and 5 git commands to generate.