diff options
author | Dhruva Gole <d-gole@ti.com> | 2024-06-27 11:31:17 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-06-28 20:58:04 +0200 |
commit | 43c0226c9ba56ffebdef9a858dbcf6eb0d376291 (patch) | |
tree | 5976f0d761a995f9a7e003d68456176bd40dfe01 /drivers/cpufreq | |
parent | d845cd901b28f1b6c02a208b864fc3fc46d14536 (diff) | |
download | lwn-43c0226c9ba56ffebdef9a858dbcf6eb0d376291.tar.gz lwn-43c0226c9ba56ffebdef9a858dbcf6eb0d376291.zip |
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>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 82c500389a40..709e7b1f9826 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2873,7 +2873,7 @@ int cpufreq_enable_boost_support(void) } EXPORT_SYMBOL_GPL(cpufreq_enable_boost_support); -int cpufreq_boost_enabled(void) +bool cpufreq_boost_enabled(void) { return cpufreq_driver->boost_enabled; } |