aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_conservative.c
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2011-03-03 15:31:25 -0500
committerDave Jones <davej@redhat.com>2011-03-16 17:54:32 -0400
commitef598549b28014ec2ea7574d4e793728e0e33d02 (patch)
treec3ecb7f91f2130f4b9c0c7a602c3dd07e57106bd /drivers/cpufreq/cpufreq_conservative.c
parent9e91869544fc831d640cae1ffd0313b38657b593 (diff)
[CPUFREQ] Remove deprecated sysfs file sampling_rate_max
Marked deprecated for quite a while now... Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Dave Jones <davej@redhat.com> CC: cpufreq@vger.kernel.org
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r--drivers/cpufreq/cpufreq_conservative.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index 4531c46028cd..c80b80d48644 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -162,21 +162,12 @@ static struct notifier_block dbs_cpufreq_notifier_block = {
162}; 162};
163 163
164/************************** sysfs interface ************************/ 164/************************** sysfs interface ************************/
165static ssize_t show_sampling_rate_max(struct kobject *kobj,
166 struct attribute *attr, char *buf)
167{
168 printk_once(KERN_INFO "CPUFREQ: conservative sampling_rate_max "
169 "sysfs file is deprecated - used by: %s\n", current->comm);
170 return sprintf(buf, "%u\n", -1U);
171}
172
173static ssize_t show_sampling_rate_min(struct kobject *kobj, 165static ssize_t show_sampling_rate_min(struct kobject *kobj,
174 struct attribute *attr, char *buf) 166 struct attribute *attr, char *buf)
175{ 167{
176 return sprintf(buf, "%u\n", min_sampling_rate); 168 return sprintf(buf, "%u\n", min_sampling_rate);
177} 169}
178 170
179define_one_global_ro(sampling_rate_max);
180define_one_global_ro(sampling_rate_min); 171define_one_global_ro(sampling_rate_min);
181 172
182/* cpufreq_conservative Governor Tunables */ 173/* cpufreq_conservative Governor Tunables */
@@ -213,10 +204,8 @@ show_one_old(down_threshold);
213show_one_old(ignore_nice_load); 204show_one_old(ignore_nice_load);
214show_one_old(freq_step); 205show_one_old(freq_step);
215show_one_old(sampling_rate_min); 206show_one_old(sampling_rate_min);
216show_one_old(sampling_rate_max);
217 207
218cpufreq_freq_attr_ro_old(sampling_rate_min); 208cpufreq_freq_attr_ro_old(sampling_rate_min);
219cpufreq_freq_attr_ro_old(sampling_rate_max);
220 209
221/*** delete after deprecation time ***/ 210/*** delete after deprecation time ***/
222 211
@@ -362,7 +351,6 @@ define_one_global_rw(ignore_nice_load);
362define_one_global_rw(freq_step); 351define_one_global_rw(freq_step);
363 352
364static struct attribute *dbs_attributes[] = { 353static struct attribute *dbs_attributes[] = {
365 &sampling_rate_max.attr,
366 &sampling_rate_min.attr, 354 &sampling_rate_min.attr,
367 &sampling_rate.attr, 355 &sampling_rate.attr,
368 &sampling_down_factor.attr, 356 &sampling_down_factor.attr,
@@ -403,7 +391,6 @@ cpufreq_freq_attr_rw_old(ignore_nice_load);
403cpufreq_freq_attr_rw_old(freq_step); 391cpufreq_freq_attr_rw_old(freq_step);
404 392
405static struct attribute *dbs_attributes_old[] = { 393static struct attribute *dbs_attributes_old[] = {
406 &sampling_rate_max_old.attr,
407 &sampling_rate_min_old.attr, 394 &sampling_rate_min_old.attr,
408 &sampling_rate_old.attr, 395 &sampling_rate_old.attr,
409 &sampling_down_factor_old.attr, 396 &sampling_down_factor_old.attr,