diff options
| author | Diwakar Tundlam <dtundlam@nvidia.com> | 2014-08-04 22:27:09 -0400 |
|---|---|---|
| committer | Srikar Srimath Tirumala <srikars@nvidia.com> | 2018-05-18 14:18:08 -0400 |
| commit | c53d564ebddc83a6d01b7ff24eec219fba830bda (patch) | |
| tree | 5484379a1f3054b14a05aaaae027360d620d3f14 /include/linux | |
| parent | 45fdd4082a82ab91a2a5926bd5862e285ef4eedf (diff) | |
thermal: get pid-governor params from of_thermal zone params
Added pid-governor specific parser for thermal-zone-params get its
tuning parameters from DT. We use the default values for parameters
not specified in DT. This allows zone specific tuning of pid-governor
parameters via of-thermal.
Bug 200004664
Change-Id: I316ead8babd1cfec11d82453ae7c79ed9642fe93
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/452774
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
(cherry picked from commit 56ab8a75862fd2084d52f11ee0ecd506d142cbb1)
Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pid_thermal_gov.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pid_thermal_gov.h b/include/linux/pid_thermal_gov.h index 6cd17af54..c64ec3fe3 100644 --- a/include/linux/pid_thermal_gov.h +++ b/include/linux/pid_thermal_gov.h | |||
| @@ -27,6 +27,9 @@ struct pid_thermal_gov_params { | |||
| 27 | int gain_p; /* proportional gain */ | 27 | int gain_p; /* proportional gain */ |
| 28 | int gain_d; /* derivative gain */ | 28 | int gain_d; /* derivative gain */ |
| 29 | 29 | ||
| 30 | /* max derivative output, percentage of max error */ | ||
| 31 | unsigned long max_dout; | ||
| 32 | |||
| 30 | unsigned long up_compensation; | 33 | unsigned long up_compensation; |
| 31 | unsigned long down_compensation; | 34 | unsigned long down_compensation; |
| 32 | }; | 35 | }; |
