Commit a4d3102b authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Remove duplicate information brought in with the new governor.

The current CPU frequency is already exported one directory upwards, so there
is no need to duplicate it in the ondemand governor.

From: Dominik Brodowski <linux@dominikbrodowski.de>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 633e8b54
...@@ -90,11 +90,6 @@ struct dbs_tuners dbs_tuners_ins = { ...@@ -90,11 +90,6 @@ struct dbs_tuners dbs_tuners_ins = {
}; };
/************************** sysfs interface ************************/ /************************** sysfs interface ************************/
static ssize_t show_current_freq(struct cpufreq_policy *policy, char *buf)
{
return sprintf (buf, "%u\n", policy->cur);
}
static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf)
{ {
return sprintf (buf, "%u\n", MAX_SAMPLING_RATE); return sprintf (buf, "%u\n", MAX_SAMPLING_RATE);
...@@ -111,7 +106,6 @@ static struct freq_attr _name = { \ ...@@ -111,7 +106,6 @@ static struct freq_attr _name = { \
.show = show_##_name, \ .show = show_##_name, \
} }
define_one_ro(current_freq);
define_one_ro(sampling_rate_max); define_one_ro(sampling_rate_max);
define_one_ro(sampling_rate_min); define_one_ro(sampling_rate_min);
...@@ -208,7 +202,6 @@ define_one_rw(up_threshold); ...@@ -208,7 +202,6 @@ define_one_rw(up_threshold);
define_one_rw(down_threshold); define_one_rw(down_threshold);
static struct attribute * dbs_attributes[] = { static struct attribute * dbs_attributes[] = {
&current_freq.attr,
&sampling_rate_max.attr, &sampling_rate_max.attr,
&sampling_rate_min.attr, &sampling_rate_min.attr,
&sampling_rate.attr, &sampling_rate.attr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment