Skip to content

Commit 1f04815

Browse files
committed
cpufreq: staticize cpufreq_boost_trigger_state()
cpufreq_boost_trigger_state() is only used by cpufreq core, mark it static. Signed-off-by: Viresh Kumar <[email protected]>
1 parent 38bcdb6 commit 1f04815

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy,
8888
struct cpufreq_governor *new_gov,
8989
unsigned int new_pol);
9090
static bool cpufreq_boost_supported(void);
91+
static int cpufreq_boost_trigger_state(int state);
9192

9293
/*
9394
* Two notifier lists: the "policy" list is involved in the
@@ -2807,7 +2808,7 @@ static int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
28072808
return 0;
28082809
}
28092810

2810-
int cpufreq_boost_trigger_state(int state)
2811+
static int cpufreq_boost_trigger_state(int state)
28112812
{
28122813
struct cpufreq_policy *policy;
28132814
unsigned long flags;

include/linux/cpufreq.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy,
778778
ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
779779

780780
#ifdef CONFIG_CPU_FREQ
781-
int cpufreq_boost_trigger_state(int state);
782781
bool cpufreq_boost_enabled(void);
783782
int cpufreq_enable_boost_support(void);
784783
bool policy_has_boost_freq(struct cpufreq_policy *policy);
@@ -1150,10 +1149,6 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_
11501149
return 0;
11511150
}
11521151
#else
1153-
static inline int cpufreq_boost_trigger_state(int state)
1154-
{
1155-
return 0;
1156-
}
11571152
static inline bool cpufreq_boost_enabled(void)
11581153
{
11591154
return false;

0 commit comments

Comments
 (0)