aboutsummaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorGravatar Michele Di Giorgio <michele.digiorgio@arm.com> 2016-05-11 10:49:07 +0100
committerGravatar Zhang Rui <rui.zhang@intel.com> 2016-05-16 13:21:11 +0800
commit191b07541fcdd1de1ccc71d00bc28ca5060dd484 (patch)
tree92a7a40aff62481b8bef2949827287932cb9d1cc /ipc
parentLinux 4.6-rc6 (diff)
downloadlinux-191b07541fcdd1de1ccc71d00bc28ca5060dd484.tar.gz
linux-191b07541fcdd1de1ccc71d00bc28ca5060dd484.tar.bz2
linux-191b07541fcdd1de1ccc71d00bc28ca5060dd484.zip
thermal: check validity get_trip_hyst function pointer in bang-bang governor
Bang-bang thermal governor uses trip point hysteresis to make decisions. Hysteresis is a required property in the device tree for trip points, but it is an optional thermal zone device operation. Hence, we need to check whether the function pointer is valid or not. If it is not available, we assume the hysteresis to be zero. Consequently, a highly varying temperature will make the governor continuosly switch a cooling device ON and OFF. CC: Zhang Rui <rui.zhang@intel.com> CC: Eduardo Valentin <edubezval@gmail.com> CC: Peter Feuerer <peter@piie.net> Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions