OSDN Git Service

cpupower: Add AMD P-State sysfs definition and access helper
authorHuang Rui <ray.huang@amd.com>
Tue, 22 Feb 2022 15:34:22 +0000 (23:34 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 23 Feb 2022 01:36:55 +0000 (18:36 -0700)
commit33e43f3636dffe84753847eee79ea0e3527105e6
tree817662d6eee20c5137bb3139e6ce6ec595574776
parent4a06806e5d4a781d2c81f6064985018562b2604b
cpupower: Add AMD P-State sysfs definition and access helper

Introduce the marco definitions and access helper function for
AMD P-State sysfs interfaces such as each performance goals and frequency
levels in amd helper file. They will be used to read the sysfs attribute
from AMD P-State cpufreq driver for cpupower utilities.

Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/helpers/amd.c