Skip to content

Commit a1cf97c

Browse files
wkarnyshuahkh
authored andcommitted
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>
1 parent d7de5d8 commit a1cf97c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/power/cpupower/utils/helpers

tools/power/cpupower/utils/helpers/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ bool cpupower_amd_pstate_enabled(void)
9595
if (!driver)
9696
return ret;
9797

98-
if (!strcmp(driver, "amd-pstate"))
98+
if (!strncmp(driver, "amd", 3))
9999
ret = true;
100100

101101
cpufreq_put_driver(driver);

0 commit comments

Comments
 (0)