Skip to content

Commit 486729c

Browse files
committed
cpufreq: Remove cpufreq_generic_attrs
All users of cpufreq_generic_attr are migrated now, remove it. While at it, also stop exporting attributes for available and boost frequencies as they are only used by cpufreq core now. Signed-off-by: Viresh Kumar <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]>
1 parent 0df09bf commit 486729c

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/cpufreq/freq_table.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ static ssize_t scaling_available_frequencies_show(struct cpufreq_policy *policy,
276276
return show_available_freqs(policy, buf, false);
277277
}
278278
cpufreq_attr_available_freq(scaling_available);
279-
EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_available_freqs);
280279

281280
/*
282281
* scaling_boost_frequencies_show - show available boost frequencies for
@@ -288,13 +287,6 @@ static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy,
288287
return show_available_freqs(policy, buf, true);
289288
}
290289
cpufreq_attr_available_freq(scaling_boost);
291-
EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_boost_freqs);
292-
293-
struct freq_attr *cpufreq_generic_attr[] = {
294-
&cpufreq_freq_attr_scaling_available_freqs,
295-
NULL,
296-
};
297-
EXPORT_SYMBOL_GPL(cpufreq_generic_attr);
298290

299291
static int set_freq_table_sorted(struct cpufreq_policy *policy)
300292
{

include/linux/cpufreq.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,6 @@ void arch_set_freq_scale(const struct cpumask *cpus,
11981198
/* the following are really really optional */
11991199
extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs;
12001200
extern struct freq_attr cpufreq_freq_attr_scaling_boost_freqs;
1201-
extern struct freq_attr *cpufreq_generic_attr[];
12021201
int cpufreq_table_validate_and_sort(struct cpufreq_policy *policy);
12031202

12041203
unsigned int cpufreq_generic_get(unsigned int cpu);

0 commit comments

Comments
 (0)