diff options
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 10 | ||||
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 2ed5c4363b53..39543a2bed0f 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -93,7 +93,7 @@ static inline unsigned int get_cpu_idle_time(unsigned int cpu) | |||
93 | { | 93 | { |
94 | return kstat_cpu(cpu).cpustat.idle + | 94 | return kstat_cpu(cpu).cpustat.idle + |
95 | kstat_cpu(cpu).cpustat.iowait + | 95 | kstat_cpu(cpu).cpustat.iowait + |
96 | ( !dbs_tuners_ins.ignore_nice ? | 96 | ( dbs_tuners_ins.ignore_nice ? |
97 | kstat_cpu(cpu).cpustat.nice : | 97 | kstat_cpu(cpu).cpustat.nice : |
98 | 0); | 98 | 0); |
99 | } | 99 | } |
@@ -127,7 +127,7 @@ show_one(sampling_rate, sampling_rate); | |||
127 | show_one(sampling_down_factor, sampling_down_factor); | 127 | show_one(sampling_down_factor, sampling_down_factor); |
128 | show_one(up_threshold, up_threshold); | 128 | show_one(up_threshold, up_threshold); |
129 | show_one(down_threshold, down_threshold); | 129 | show_one(down_threshold, down_threshold); |
130 | show_one(ignore_nice, ignore_nice); | 130 | show_one(ignore_nice_load, ignore_nice); |
131 | show_one(freq_step, freq_step); | 131 | show_one(freq_step, freq_step); |
132 | 132 | ||
133 | static ssize_t store_sampling_down_factor(struct cpufreq_policy *unused, | 133 | static ssize_t store_sampling_down_factor(struct cpufreq_policy *unused, |
@@ -207,7 +207,7 @@ static ssize_t store_down_threshold(struct cpufreq_policy *unused, | |||
207 | return count; | 207 | return count; |
208 | } | 208 | } |
209 | 209 | ||
210 | static ssize_t store_ignore_nice(struct cpufreq_policy *policy, | 210 | static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy, |
211 | const char *buf, size_t count) | 211 | const char *buf, size_t count) |
212 | { | 212 | { |
213 | unsigned int input; | 213 | unsigned int input; |
@@ -272,7 +272,7 @@ define_one_rw(sampling_rate); | |||
272 | define_one_rw(sampling_down_factor); | 272 | define_one_rw(sampling_down_factor); |
273 | define_one_rw(up_threshold); | 273 | define_one_rw(up_threshold); |
274 | define_one_rw(down_threshold); | 274 | define_one_rw(down_threshold); |
275 | define_one_rw(ignore_nice); | 275 | define_one_rw(ignore_nice_load); |
276 | define_one_rw(freq_step); | 276 | define_one_rw(freq_step); |
277 | 277 | ||
278 | static struct attribute * dbs_attributes[] = { | 278 | static struct attribute * dbs_attributes[] = { |
@@ -282,7 +282,7 @@ static struct attribute * dbs_attributes[] = { | |||
282 | &sampling_down_factor.attr, | 282 | &sampling_down_factor.attr, |
283 | &up_threshold.attr, | 283 | &up_threshold.attr, |
284 | &down_threshold.attr, | 284 | &down_threshold.attr, |
285 | &ignore_nice.attr, | 285 | &ignore_nice_load.attr, |
286 | &freq_step.attr, | 286 | &freq_step.attr, |
287 | NULL | 287 | NULL |
288 | }; | 288 | }; |
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 17741111246b..e69fd8dd1f1c 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -89,7 +89,7 @@ static inline unsigned int get_cpu_idle_time(unsigned int cpu) | |||
89 | { | 89 | { |
90 | return kstat_cpu(cpu).cpustat.idle + | 90 | return kstat_cpu(cpu).cpustat.idle + |
91 | kstat_cpu(cpu).cpustat.iowait + | 91 | kstat_cpu(cpu).cpustat.iowait + |
92 | ( !dbs_tuners_ins.ignore_nice ? | 92 | ( dbs_tuners_ins.ignore_nice ? |
93 | kstat_cpu(cpu).cpustat.nice : | 93 | kstat_cpu(cpu).cpustat.nice : |
94 | 0); | 94 | 0); |
95 | } | 95 | } |
@@ -122,7 +122,7 @@ static ssize_t show_##file_name \ | |||
122 | show_one(sampling_rate, sampling_rate); | 122 | show_one(sampling_rate, sampling_rate); |
123 | show_one(sampling_down_factor, sampling_down_factor); | 123 | show_one(sampling_down_factor, sampling_down_factor); |
124 | show_one(up_threshold, up_threshold); | 124 | show_one(up_threshold, up_threshold); |
125 | show_one(ignore_nice, ignore_nice); | 125 | show_one(ignore_nice_load, ignore_nice); |
126 | 126 | ||
127 | static ssize_t store_sampling_down_factor(struct cpufreq_policy *unused, | 127 | static ssize_t store_sampling_down_factor(struct cpufreq_policy *unused, |
128 | const char *buf, size_t count) | 128 | const char *buf, size_t count) |
@@ -182,7 +182,7 @@ static ssize_t store_up_threshold(struct cpufreq_policy *unused, | |||
182 | return count; | 182 | return count; |
183 | } | 183 | } |
184 | 184 | ||
185 | static ssize_t store_ignore_nice(struct cpufreq_policy *policy, | 185 | static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy, |
186 | const char *buf, size_t count) | 186 | const char *buf, size_t count) |
187 | { | 187 | { |
188 | unsigned int input; | 188 | unsigned int input; |
@@ -223,7 +223,7 @@ __ATTR(_name, 0644, show_##_name, store_##_name) | |||
223 | define_one_rw(sampling_rate); | 223 | define_one_rw(sampling_rate); |
224 | define_one_rw(sampling_down_factor); | 224 | define_one_rw(sampling_down_factor); |
225 | define_one_rw(up_threshold); | 225 | define_one_rw(up_threshold); |
226 | define_one_rw(ignore_nice); | 226 | define_one_rw(ignore_nice_load); |
227 | 227 | ||
228 | static struct attribute * dbs_attributes[] = { | 228 | static struct attribute * dbs_attributes[] = { |
229 | &sampling_rate_max.attr, | 229 | &sampling_rate_max.attr, |
@@ -231,7 +231,7 @@ static struct attribute * dbs_attributes[] = { | |||
231 | &sampling_rate.attr, | 231 | &sampling_rate.attr, |
232 | &sampling_down_factor.attr, | 232 | &sampling_down_factor.attr, |
233 | &up_threshold.attr, | 233 | &up_threshold.attr, |
234 | &ignore_nice.attr, | 234 | &ignore_nice_load.attr, |
235 | NULL | 235 | NULL |
236 | }; | 236 | }; |
237 | 237 | ||