Skip to content

Commit c952775

Browse files
committed
cpufreq: staticize policy_has_boost_freq()
policy_has_boost_freq() isn't used outside of freq_table.c now, mark it static. Signed-off-by: Viresh Kumar <[email protected]>
1 parent e8b08af commit c952775

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

drivers/cpufreq/freq_table.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* FREQUENCY TABLE HELPERS *
1515
*********************************************************************/
1616

17-
bool policy_has_boost_freq(struct cpufreq_policy *policy)
17+
static bool policy_has_boost_freq(struct cpufreq_policy *policy)
1818
{
1919
struct cpufreq_frequency_table *pos, *table = policy->freq_table;
2020

@@ -27,7 +27,6 @@ bool policy_has_boost_freq(struct cpufreq_policy *policy)
2727

2828
return false;
2929
}
30-
EXPORT_SYMBOL_GPL(policy_has_boost_freq);
3130

3231
int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
3332
struct cpufreq_frequency_table *table)

include/linux/cpufreq.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,6 @@ ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
783783
#ifdef CONFIG_CPU_FREQ
784784
bool cpufreq_boost_enabled(void);
785785
int cpufreq_enable_boost_support(void);
786-
bool policy_has_boost_freq(struct cpufreq_policy *policy);
787786
int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state);
788787

789788
/* Find lowest freq at or above target in a table in ascending order */
@@ -1163,11 +1162,6 @@ static inline int cpufreq_enable_boost_support(void)
11631162
return -EINVAL;
11641163
}
11651164

1166-
static inline bool policy_has_boost_freq(struct cpufreq_policy *policy)
1167-
{
1168-
return false;
1169-
}
1170-
11711165
static inline int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
11721166
{
11731167
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)