cpupower: Add EPP value change support
authorWyes Karny <wyes.karny@amd.com>
Mon, 19 Jun 2023 19:05:01 +0000 (19:05 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 18 Jul 2023 22:06:49 +0000 (16:06 -0600)
commitf2ab5557119a5ccd0ceaf7ecdca00ab782cd76c5
tree6ac8de88fb10eab6ccdb3c736cb93ee9ea8aa43a
parent1ce5ab7c1dbfa82f0d382a48cccb51178cbf5416
cpupower: Add EPP value change support

amd_pstate and intel_pstate active mode drivers support energy
performance preference feature. Through this user can convey it's
energy/performance preference to platform. Add this value change
capability to cpupower.

To change the EPP value use below command:
cpupower set --epp performance

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Wyes Karny <wyes.karny@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>
tools/power/cpupower/utils/cpupower-set.c
tools/power/cpupower/utils/helpers/helpers.h
tools/power/cpupower/utils/helpers/misc.c