]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: staticize cpufreq_boost_trigger_state()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Jan 2025 05:18:34 +0000 (10:48 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:14 +0000 (09:45 +0530)
cpufreq_boost_trigger_state() is only used by cpufreq core, mark it
static.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h

index 42b00ca510356b909cba252bcc8df55393c2f5b5..eca649d062d0cf593a21e82b8b7bf4cd85707367 100644 (file)
@@ -88,6 +88,7 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy,
                              struct cpufreq_governor *new_gov,
                              unsigned int new_pol);
 static bool cpufreq_boost_supported(void);
+static int cpufreq_boost_trigger_state(int state);
 
 /*
  * 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)
        return 0;
 }
 
-int cpufreq_boost_trigger_state(int state)
+static int cpufreq_boost_trigger_state(int state)
 {
        struct cpufreq_policy *policy;
        unsigned long flags;
index d237ef91d1f1f52003d60a1b9735c9c60e03ea02..0e708830d30dc6bc91000ed9cfe35da2a5923f91 100644 (file)
@@ -778,7 +778,6 @@ int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy,
 ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
 
 #ifdef CONFIG_CPU_FREQ
-int cpufreq_boost_trigger_state(int state);
 bool cpufreq_boost_enabled(void);
 int cpufreq_enable_boost_support(void);
 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_
        return 0;
 }
 #else
-static inline int cpufreq_boost_trigger_state(int state)
-{
-       return 0;
-}
 static inline bool cpufreq_boost_enabled(void)
 {
        return false;