aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_ondemand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r--drivers/cpufreq/cpufreq_ondemand.c13
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
238static 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
246static ssize_t show_sampling_rate_min(struct kobject *kobj, 238static 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
252define_one_global_ro(sampling_rate_max);
253define_one_global_ro(sampling_rate_min); 244define_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);
285show_one_old(ignore_nice_load); 276show_one_old(ignore_nice_load);
286show_one_old(powersave_bias); 277show_one_old(powersave_bias);
287show_one_old(sampling_rate_min); 278show_one_old(sampling_rate_min);
288show_one_old(sampling_rate_max);
289 279
290cpufreq_freq_attr_ro_old(sampling_rate_min); 280cpufreq_freq_attr_ro_old(sampling_rate_min);
291cpufreq_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);
433define_one_global_rw(powersave_bias); 422define_one_global_rw(powersave_bias);
434 423
435static struct attribute *dbs_attributes[] = { 424static 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);
470cpufreq_freq_attr_rw_old(powersave_bias); 458cpufreq_freq_attr_rw_old(powersave_bias);
471 459
472static struct attribute *dbs_attributes_old[] = { 460static 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,