Skip to content

Commit 9a23eb8

Browse files
committed
cpufreq: Export cpufreq_boost_set_sw()
This will be used directly by cpufreq driver going forward, export it. Signed-off-by: Viresh Kumar <[email protected]>
1 parent 1f04815 commit 9a23eb8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ EXPORT_SYMBOL_GPL(cpufreq_update_limits);
27882788
/*********************************************************************
27892789
* BOOST *
27902790
*********************************************************************/
2791-
static int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
2791+
int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
27922792
{
27932793
int ret;
27942794

@@ -2807,6 +2807,7 @@ static int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
28072807

28082808
return 0;
28092809
}
2810+
EXPORT_SYMBOL_GPL(cpufreq_boost_set_sw);
28102811

28112812
static int cpufreq_boost_trigger_state(int state)
28122813
{

include/linux/cpufreq.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
781781
bool cpufreq_boost_enabled(void);
782782
int cpufreq_enable_boost_support(void);
783783
bool policy_has_boost_freq(struct cpufreq_policy *policy);
784+
int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state);
784785

785786
/* Find lowest freq at or above target in a table in ascending order */
786787
static inline int cpufreq_table_find_index_al(struct cpufreq_policy *policy,
@@ -1164,6 +1165,11 @@ static inline bool policy_has_boost_freq(struct cpufreq_policy *policy)
11641165
return false;
11651166
}
11661167

1168+
static inline int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
1169+
{
1170+
return -EOPNOTSUPP;
1171+
}
1172+
11671173
static inline int
11681174
cpufreq_table_set_inefficient(struct cpufreq_policy *policy,
11691175
unsigned int frequency)

0 commit comments

Comments
 (0)