Skip to content

Commit 0322f3e

Browse files
committed
cpufreq: Remove cpufreq_enable_boost_support()
Remove the now unused helper, cpufreq_enable_boost_support(). Signed-off-by: Viresh Kumar <[email protected]>
1 parent c952775 commit 0322f3e

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,21 +2877,6 @@ static void remove_boost_sysfs_file(void)
28772877
sysfs_remove_file(cpufreq_global_kobject, &boost.attr);
28782878
}
28792879

2880-
int cpufreq_enable_boost_support(void)
2881-
{
2882-
if (!cpufreq_driver)
2883-
return -EINVAL;
2884-
2885-
if (cpufreq_boost_supported())
2886-
return 0;
2887-
2888-
cpufreq_driver->set_boost = cpufreq_boost_set_sw;
2889-
2890-
/* This will get removed on driver unregister */
2891-
return create_boost_sysfs_file();
2892-
}
2893-
EXPORT_SYMBOL_GPL(cpufreq_enable_boost_support);
2894-
28952880
bool cpufreq_boost_enabled(void)
28962881
{
28972882
return cpufreq_driver->boost_enabled;

include/linux/cpufreq.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,6 @@ ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
782782

783783
#ifdef CONFIG_CPU_FREQ
784784
bool cpufreq_boost_enabled(void);
785-
int cpufreq_enable_boost_support(void);
786785
int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state);
787786

788787
/* Find lowest freq at or above target in a table in ascending order */
@@ -1157,11 +1156,6 @@ static inline bool cpufreq_boost_enabled(void)
11571156
return false;
11581157
}
11591158

1160-
static inline int cpufreq_enable_boost_support(void)
1161-
{
1162-
return -EINVAL;
1163-
}
1164-
11651159
static inline int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
11661160
{
11671161
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)