Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wyes Karny and committed by
Shuah Khan
a1cf97c2 d7de5d8e

+1 -1
+1 -1
tools/power/cpupower/utils/helpers/misc.c
··· 95 95 if (!driver) 96 96 return ret; 97 97 98 - if (!strcmp(driver, "amd-pstate")) 98 + if (!strncmp(driver, "amd", 3)) 99 99 ret = true; 100 100 101 101 cpufreq_put_driver(driver);