diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 059179db1985..9dbb76397465 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -235,21 +235,12 @@ static void ondemand_powersave_bias_init(void) | |||
235 | 235 | ||
236 | /************************** sysfs interface ************************/ | 236 | /************************** sysfs interface ************************/ |
237 | 237 | ||
238 | static ssize_t show_sampling_rate_max(struct kobject *kobj, | ||
239 | struct attribute *attr, char *buf) | ||
240 | { | ||
241 | printk_once(KERN_INFO "CPUFREQ: ondemand sampling_rate_max " | ||
242 | "sysfs file is deprecated - used by: %s\n", current->comm); | ||
243 | return sprintf(buf, "%u\n", -1U); | ||
244 | } | ||
245 | |||
246 | static ssize_t show_sampling_rate_min(struct kobject *kobj, | 238 | static ssize_t show_sampling_rate_min(struct kobject *kobj, |
247 | struct attribute *attr, char *buf) | 239 | struct attribute *attr, char *buf) |
248 | { | 240 | { |
249 | return sprintf(buf, "%u\n", min_sampling_rate); | 241 | return sprintf(buf, "%u\n", min_sampling_rate); |
250 | } | 242 | } |
251 | 243 | ||
252 | define_one_global_ro(sampling_rate_max); | ||
253 | define_one_global_ro(sampling_rate_min); | 244 | define_one_global_ro(sampling_rate_min); |
254 | 245 | ||
255 | /* cpufreq_ondemand Governor Tunables */ | 246 | /* cpufreq_ondemand Governor Tunables */ |
@@ -285,10 +276,8 @@ show_one_old(up_threshold); | |||
285 | show_one_old(ignore_nice_load); | 276 | show_one_old(ignore_nice_load); |
286 | show_one_old(powersave_bias); | 277 | show_one_old(powersave_bias); |
287 | show_one_old(sampling_rate_min); | 278 | show_one_old(sampling_rate_min); |
288 | show_one_old(sampling_rate_max); | ||
289 | 279 | ||
290 | cpufreq_freq_attr_ro_old(sampling_rate_min); | 280 | cpufreq_freq_attr_ro_old(sampling_rate_min); |
291 | cpufreq_freq_attr_ro_old(sampling_rate_max); | ||
292 | 281 | ||
293 | /*** delete after deprecation time ***/ | 282 | /*** delete after deprecation time ***/ |
294 | 283 | ||
@@ -433,7 +422,6 @@ define_one_global_rw(ignore_nice_load); | |||
433 | define_one_global_rw(powersave_bias); | 422 | define_one_global_rw(powersave_bias); |
434 | 423 | ||
435 | static struct attribute *dbs_attributes[] = { | 424 | static struct attribute *dbs_attributes[] = { |
436 | &sampling_rate_max.attr, | ||
437 | &sampling_rate_min.attr, | 425 | &sampling_rate_min.attr, |
438 | &sampling_rate.attr, | 426 | &sampling_rate.attr, |
439 | &up_threshold.attr, | 427 | &up_threshold.attr, |
@@ -470,7 +458,6 @@ cpufreq_freq_attr_rw_old(ignore_nice_load); | |||
470 | cpufreq_freq_attr_rw_old(powersave_bias); | 458 | cpufreq_freq_attr_rw_old(powersave_bias); |
471 | 459 | ||
472 | static struct attribute *dbs_attributes_old[] = { | 460 | static struct attribute *dbs_attributes_old[] = { |
473 | &sampling_rate_max_old.attr, | ||
474 | &sampling_rate_min_old.attr, | 461 | &sampling_rate_min_old.attr, |
475 | &sampling_rate_old.attr, | 462 | &sampling_rate_old.attr, |
476 | &up_threshold_old.attr, | 463 | &up_threshold_old.attr, |