diff options
author | Thomas Renninger <trenn@suse.de> | 2011-03-03 15:31:26 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-03-16 17:54:32 -0400 |
commit | e8951251b89440644a39f2512b4f265973926b41 (patch) | |
tree | f33ec13af306e2a8bdcbf6f62e34d450c1aa2bdc /drivers/cpufreq/cpufreq_conservative.c | |
parent | ef598549b28014ec2ea7574d4e793728e0e33d02 (diff) |
[CPUFREQ] Remove old, deprecated per cpu ondemand/conservative sysfs files
Marked deprecated for quite a whilte 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.c | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index c80b80d48644..3182d85b3374 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -184,31 +184,6 @@ show_one(down_threshold, down_threshold); | |||
184 | show_one(ignore_nice_load, ignore_nice); | 184 | show_one(ignore_nice_load, ignore_nice); |
185 | show_one(freq_step, freq_step); | 185 | show_one(freq_step, freq_step); |
186 | 186 | ||
187 | /*** delete after deprecation time ***/ | ||
188 | #define DEPRECATION_MSG(file_name) \ | ||
189 | printk_once(KERN_INFO "CPUFREQ: Per core conservative sysfs " \ | ||
190 | "interface is deprecated - " #file_name "\n"); | ||
191 | |||
192 | #define show_one_old(file_name) \ | ||
193 | static ssize_t show_##file_name##_old \ | ||
194 | (struct cpufreq_policy *unused, char *buf) \ | ||
195 | { \ | ||
196 | printk_once(KERN_INFO "CPUFREQ: Per core conservative sysfs " \ | ||
197 | "interface is deprecated - " #file_name "\n"); \ | ||
198 | return show_##file_name(NULL, NULL, buf); \ | ||
199 | } | ||
200 | show_one_old(sampling_rate); | ||
201 | show_one_old(sampling_down_factor); | ||
202 | show_one_old(up_threshold); | ||
203 | show_one_old(down_threshold); | ||
204 | show_one_old(ignore_nice_load); | ||
205 | show_one_old(freq_step); | ||
206 | show_one_old(sampling_rate_min); | ||
207 | |||
208 | cpufreq_freq_attr_ro_old(sampling_rate_min); | ||
209 | |||
210 | /*** delete after deprecation time ***/ | ||
211 | |||
212 | static ssize_t store_sampling_down_factor(struct kobject *a, | 187 | static ssize_t store_sampling_down_factor(struct kobject *a, |
213 | struct attribute *b, | 188 | struct attribute *b, |
214 | const char *buf, size_t count) | 189 | const char *buf, size_t count) |
@@ -366,48 +341,6 @@ static struct attribute_group dbs_attr_group = { | |||
366 | .name = "conservative", | 341 | .name = "conservative", |
367 | }; | 342 | }; |
368 | 343 | ||
369 | /*** delete after deprecation time ***/ | ||
370 | |||
371 | #define write_one_old(file_name) \ | ||
372 | static ssize_t store_##file_name##_old \ | ||
373 | (struct cpufreq_policy *unused, const char *buf, size_t count) \ | ||
374 | { \ | ||
375 | printk_once(KERN_INFO "CPUFREQ: Per core conservative sysfs " \ | ||
376 | "interface is deprecated - " #file_name "\n"); \ | ||
377 | return store_##file_name(NULL, NULL, buf, count); \ | ||
378 | } | ||
379 | write_one_old(sampling_rate); | ||
380 | write_one_old(sampling_down_factor); | ||
381 | write_one_old(up_threshold); | ||
382 | write_one_old(down_threshold); | ||
383 | write_one_old(ignore_nice_load); | ||
384 | write_one_old(freq_step); | ||
385 | |||
386 | cpufreq_freq_attr_rw_old(sampling_rate); | ||
387 | cpufreq_freq_attr_rw_old(sampling_down_factor); | ||
388 | cpufreq_freq_attr_rw_old(up_threshold); | ||
389 | cpufreq_freq_attr_rw_old(down_threshold); | ||
390 | cpufreq_freq_attr_rw_old(ignore_nice_load); | ||
391 | cpufreq_freq_attr_rw_old(freq_step); | ||
392 | |||
393 | static struct attribute *dbs_attributes_old[] = { | ||
394 | &sampling_rate_min_old.attr, | ||
395 | &sampling_rate_old.attr, | ||
396 | &sampling_down_factor_old.attr, | ||
397 | &up_threshold_old.attr, | ||
398 | &down_threshold_old.attr, | ||
399 | &ignore_nice_load_old.attr, | ||
400 | &freq_step_old.attr, | ||
401 | NULL | ||
402 | }; | ||
403 | |||
404 | static struct attribute_group dbs_attr_group_old = { | ||
405 | .attrs = dbs_attributes_old, | ||
406 | .name = "conservative", | ||
407 | }; | ||
408 | |||
409 | /*** delete after deprecation time ***/ | ||
410 | |||
411 | /************************** sysfs end ************************/ | 344 | /************************** sysfs end ************************/ |
412 | 345 | ||
413 | static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info) | 346 | static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info) |
@@ -583,12 +516,6 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, | |||
583 | 516 | ||
584 | mutex_lock(&dbs_mutex); | 517 | mutex_lock(&dbs_mutex); |
585 | 518 | ||
586 | rc = sysfs_create_group(&policy->kobj, &dbs_attr_group_old); | ||
587 | if (rc) { | ||
588 | mutex_unlock(&dbs_mutex); | ||
589 | return rc; | ||
590 | } | ||
591 | |||
592 | for_each_cpu(j, policy->cpus) { | 519 | for_each_cpu(j, policy->cpus) { |
593 | struct cpu_dbs_info_s *j_dbs_info; | 520 | struct cpu_dbs_info_s *j_dbs_info; |
594 | j_dbs_info = &per_cpu(cs_cpu_dbs_info, j); | 521 | j_dbs_info = &per_cpu(cs_cpu_dbs_info, j); |
@@ -651,7 +578,6 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, | |||
651 | dbs_timer_exit(this_dbs_info); | 578 | dbs_timer_exit(this_dbs_info); |
652 | 579 | ||
653 | mutex_lock(&dbs_mutex); | 580 | mutex_lock(&dbs_mutex); |
654 | sysfs_remove_group(&policy->kobj, &dbs_attr_group_old); | ||
655 | dbs_enable--; | 581 | dbs_enable--; |
656 | mutex_destroy(&this_dbs_info->timer_mutex); | 582 | mutex_destroy(&this_dbs_info->timer_mutex); |
657 | 583 | ||