aboutsummaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorGravatar Wyes Karny <wyes.karny@amd.com> 2023-06-19 19:04:59 +0000
committerGravatar Shuah Khan <skhan@linuxfoundation.org> 2023-07-18 16:06:36 -0600
commita1cf97c2d43ae51f3de091d51adff6b70a5cd55c (patch)
treea09b832e1c39fc21006af557dbabed9a1489d582 /tools/power
parentcpupower: Bump soname version (diff)
downloadlinux-a1cf97c2d43ae51f3de091d51adff6b70a5cd55c.tar.gz
linux-a1cf97c2d43ae51f3de091d51adff6b70a5cd55c.tar.bz2
linux-a1cf97c2d43ae51f3de091d51adff6b70a5cd55c.zip
cpupower: Recognise amd-pstate active mode driver
amd-pstate active mode driver name is "amd-pstate-epp". Use common prefix for string matching condition to recognise amd-pstate active mode driver. Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Signed-off-by: Wyes Karny <wyes.karny@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Tested-by: Perry Yuan <Perry.Yuan@amd.com> Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/cpupower/utils/helpers/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/misc.c b/tools/power/cpupower/utils/helpers/misc.c
index 9547b29254a7..0c56fc77f93b 100644
--- a/tools/power/cpupower/utils/helpers/misc.c
+++ b/tools/power/cpupower/utils/helpers/misc.c
@@ -95,7 +95,7 @@ bool cpupower_amd_pstate_enabled(void)
if (!driver)
return ret;
- if (!strcmp(driver, "amd-pstate"))
+ if (!strncmp(driver, "amd", 3))
ret = true;
cpufreq_put_driver(driver);