cpufreq: governor: Relocate definitions of tuners structures
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Feb 2016 17:41:36 +0000 (18:41 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:09 +0000 (14:41 +0100)
Move the definitions of struct od_dbs_tuners and struct cs_dbs_tuners
from the common governor header to the ondemand and conservative
governor code, respectively, as they don't need to be in the common
header any more.

No functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.h
drivers/cpufreq/cpufreq_ondemand.h

index 5d1edc55aa636851ffdf7b7a39dea6da8333a0a5..bf4913f6453b1b26f0b71485ba59896bd4f62fe0 100644 (file)
@@ -25,6 +25,11 @@ static inline struct cs_policy_dbs_info *to_dbs_info(struct policy_dbs_info *pol
        return container_of(policy_dbs, struct cs_policy_dbs_info, policy_dbs);
 }
 
+struct cs_dbs_tuners {
+       unsigned int down_threshold;
+       unsigned int freq_step;
+};
+
 /* Conservative governor macros */
 #define DEF_FREQUENCY_UP_THRESHOLD             (80)
 #define DEF_FREQUENCY_DOWN_THRESHOLD           (20)
index 58749da97099af760c82a9d387aaaaa7e32afef8..ece70ab6bbfc0b9b963bc2dd919185975a05dfa9 100644 (file)
@@ -148,16 +148,6 @@ struct cpu_dbs_info {
        struct policy_dbs_info *policy_dbs;
 };
 
-/* Per policy Governors sysfs tunables */
-struct od_dbs_tuners {
-       unsigned int powersave_bias;
-};
-
-struct cs_dbs_tuners {
-       unsigned int down_threshold;
-       unsigned int freq_step;
-};
-
 /* Common Governor data across policies */
 struct dbs_governor {
        struct cpufreq_governor gov;
index 22403e4e0cb075cf1117eb973181769660891ea3..f0121db3cd9edacb560e3d63ba571b570cc14ab1 100644 (file)
@@ -24,3 +24,7 @@ static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *pol
 {
        return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
 }
+
+struct od_dbs_tuners {
+       unsigned int powersave_bias;
+};
This page took 0.026178 seconds and 5 git commands to generate.