]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/thermal/rockchip_thermal.c
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>
Tue, 27 Sep 2016 06:02:16 +0000 (14:02 +0800)
commit148485023f2bff19732366789f2badb1cc3ac95b
treeac88043d52341d2a6da154f1cc1ccb9f1e15f6b4
parent897e721037753ca5b843c309d08dfb50387cbe84
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