From aa37726df13cd4b09122b12edf1930bf3a5c2690 Mon Sep 17 00:00:00 2001 From: Diwakar Tundlam Date: Mon, 4 Aug 2014 19:27:09 -0700 Subject: 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 Reviewed-on: http://git-master/r/452774 Reviewed-by: Jinyoung Park (cherry picked from commit 56ab8a75862fd2084d52f11ee0ecd506d142cbb1) Signed-off-by: Srikar Srimath Tirumala --- include/linux/pid_thermal_gov.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') 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 { int gain_p; /* proportional gain */ int gain_d; /* derivative gain */ + /* max derivative output, percentage of max error */ + unsigned long max_dout; + unsigned long up_compensation; unsigned long down_compensation; }; -- cgit v1.2.2