diff options
| author | Hyungwoo Yang <hyungwooy@nvidia.com> | 2014-01-28 20:31:44 -0500 |
|---|---|---|
| committer | Nicolin Chen <nicolinc@nvidia.com> | 2017-08-14 21:38:52 -0400 |
| commit | 1d4e6deb97f650950cd4cbecc3e3ec8db55e8dfd (patch) | |
| tree | a1a482e4ba0fafb53eebfd8eb82eaa096bf8b321 /include/linux/therm_est.h | |
| parent | 41174a0a754f2884f2e2b62c12d578637d44e3cf (diff) | |
ARM: tegra: thermal: fix therm_est_activ polling
During bootup, deadlock happens with "thermal_list_lock" while trying to
finding zones for sub_devs. This change fixes the deadlock issue and
also removes zone lookup which happens on every temperature reading.
Bug 1415692
Change-Id: I13a81de7ef9051e8d7a0fe0f2c59febdea0fa1d5
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/361188
Diffstat (limited to 'include/linux/therm_est.h')
| -rw-r--r-- | include/linux/therm_est.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/therm_est.h b/include/linux/therm_est.h index 7526aa9b7..b89ca44cb 100644 --- a/include/linux/therm_est.h +++ b/include/linux/therm_est.h | |||
| @@ -28,6 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | struct therm_est_subdevice { | 29 | struct therm_est_subdevice { |
| 30 | void *dev_data; | 30 | void *dev_data; |
| 31 | struct thermal_zone_device *sub_thz; | ||
| 31 | long coeffs[HIST_LEN]; | 32 | long coeffs[HIST_LEN]; |
| 32 | long hist[HIST_LEN]; | 33 | long hist[HIST_LEN]; |
| 33 | }; | 34 | }; |
