aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_governor.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
-rw-r--r--drivers/cpufreq/cpufreq_governor.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.h b/drivers/cpufreq/cpufreq_governor.h
index 0eb66a6c9503..8bf4775ce03c 100644
--- a/drivers/cpufreq/cpufreq_governor.h
+++ b/drivers/cpufreq/cpufreq_governor.h
@@ -73,7 +73,11 @@ struct dbs_data {
73 unsigned int up_threshold; 73 unsigned int up_threshold;
74 74
75 struct kobject kobj; 75 struct kobject kobj;
76 /* Protect concurrent updates to governor tunables from sysfs */ 76 struct list_head policy_dbs_list;
77 /*
78 * Protect concurrent updates to governor tunables from sysfs,
79 * policy_dbs_list and usage_count.
80 */
77 struct mutex mutex; 81 struct mutex mutex;
78}; 82};
79 83
@@ -125,6 +129,7 @@ struct policy_dbs_info {
125 struct work_struct work; 129 struct work_struct work;
126 /* dbs_data may be shared between multiple policy objects */ 130 /* dbs_data may be shared between multiple policy objects */
127 struct dbs_data *dbs_data; 131 struct dbs_data *dbs_data;
132 struct list_head list;
128}; 133};
129 134
130static inline void gov_update_sample_delay(struct policy_dbs_info *policy_dbs, 135static inline void gov_update_sample_delay(struct policy_dbs_info *policy_dbs,