aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLifeng Zheng <zhenglifeng1@huawei.com>2025-02-07 11:59:53 +0800
committerViresh Kumar <viresh.kumar@linaro.org>2025-02-07 09:45:02 +0530
commit4ba6d37ccca1e4ac07ad660006bf130726a11ff7 (patch)
treebbb181ebb4886b1fb203a1dd8988f5df079bb41a
parentcpufreq: amd-pstate: Remove unnecessary driver_lock in set_boost (diff)
downloadwireguard-linux-4ba6d37ccca1e4ac07ad660006bf130726a11ff7.tar.xz
wireguard-linux-4ba6d37ccca1e4ac07ad660006bf130726a11ff7.zip
cpufreq: Use str_enable_disable() helper
Commit f994c1cb6c43 ("cpufreq: Use str_enable_disable()-like helpers") has already introduced helpers from string_choices.h and replaced ternary syntax with it. Use str_enable_disable() helper in this line to stay consistent. Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 30ffbddc7ece..a12e1da89163 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1578,7 +1578,7 @@ static int cpufreq_online(unsigned int cpu)
if (ret) {
/* If the set_boost fails, the online operation is not affected */
pr_info("%s: CPU%d: Cannot %s BOOST\n", __func__, policy->cpu,
- policy->boost_enabled ? "enable" : "disable");
+ str_enable_disable(policy->boost_enabled));
policy->boost_enabled = !policy->boost_enabled;
}
}