]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: Remove cpufreq_enable_boost_support()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Jan 2025 08:56:20 +0000 (14:26 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:16 +0000 (09:45 +0530)
Remove the now unused helper, cpufreq_enable_boost_support().

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

index 08deef6884d6b5ae21f6feb9966aee9ab2cd9020..70237d78d71f9c15abd02b1a6a284036eeee5774 100644 (file)
@@ -2877,21 +2877,6 @@ static void remove_boost_sysfs_file(void)
                sysfs_remove_file(cpufreq_global_kobject, &boost.attr);
 }
 
-int cpufreq_enable_boost_support(void)
-{
-       if (!cpufreq_driver)
-               return -EINVAL;
-
-       if (cpufreq_boost_supported())
-               return 0;
-
-       cpufreq_driver->set_boost = cpufreq_boost_set_sw;
-
-       /* This will get removed on driver unregister */
-       return create_boost_sysfs_file();
-}
-EXPORT_SYMBOL_GPL(cpufreq_enable_boost_support);
-
 bool cpufreq_boost_enabled(void)
 {
        return cpufreq_driver->boost_enabled;
index 466d186166dad976c638867aacf5014a8e59d0aa..cefd853abfd128719ed897d73c18288a5d5a4e76 100644 (file)
@@ -782,7 +782,6 @@ ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
 
 #ifdef CONFIG_CPU_FREQ
 bool cpufreq_boost_enabled(void);
-int cpufreq_enable_boost_support(void);
 int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state);
 
 /* Find lowest freq at or above target in a table in ascending order */
@@ -1157,11 +1156,6 @@ static inline bool cpufreq_boost_enabled(void)
        return false;
 }
 
-static inline int cpufreq_enable_boost_support(void)
-{
-       return -EINVAL;
-}
-
 static inline int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
 {
        return -EOPNOTSUPP;