Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 43c0226

Browse files
DhruvaG2000rafaeljw
authored andcommitted
cpufreq: make cpufreq_boost_enabled() return bool
Since this function is supposed to return boost_enabled which is anyway a bool type make sure that it's return value is also marked as bool. This helps maintain better consistency in data types being used. Signed-off-by: Dhruva Gole <d-gole@ti.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://patch.msgid.link/20240627060117.1809477-1-d-gole@ti.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d845cd9 commit 43c0226

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ int cpufreq_enable_boost_support(void)
28732873
}
28742874
EXPORT_SYMBOL_GPL(cpufreq_enable_boost_support);
28752875

2876-
int cpufreq_boost_enabled(void)
2876+
bool cpufreq_boost_enabled(void)
28772877
{
28782878
return cpufreq_driver->boost_enabled;
28792879
}

include/linux/cpufreq.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
785785

786786
#ifdef CONFIG_CPU_FREQ
787787
int cpufreq_boost_trigger_state(int state);
788-
int cpufreq_boost_enabled(void);
788+
bool cpufreq_boost_enabled(void);
789789
int cpufreq_enable_boost_support(void);
790790
bool policy_has_boost_freq(struct cpufreq_policy *policy);
791791

@@ -1164,9 +1164,9 @@ static inline int cpufreq_boost_trigger_state(int state)
11641164
{
11651165
return 0;
11661166
}
1167-
static inline int cpufreq_boost_enabled(void)
1167+
static inline bool cpufreq_boost_enabled(void)
11681168
{
1169-
return 0;
1169+
return false;
11701170
}
11711171

11721172
static inline int cpufreq_enable_boost_support(void)

0 commit comments

Comments
 (0)