summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorWyes Karny <wyes.karny@amd.com>2023-06-19 22:04:59 +0300
committerShuah Khan <skhan@linuxfoundation.org>2023-07-19 01:06:36 +0300
commita1cf97c2d43ae51f3de091d51adff6b70a5cd55c (patch)
treea09b832e1c39fc21006af557dbabed9a1489d582 /tools/power
parentd7de5d8e403a1293e10f8f59a1f2db320232c831 (diff)
downloadlinux-a1cf97c2d43ae51f3de091d51adff6b70a5cd55c.tar.xz
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);