OSDN Git Service

cpupower: Introduce ACPI CPPC library
authorHuang Rui <ray.huang@amd.com>
Tue, 22 Feb 2022 15:34:21 +0000 (23:34 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 23 Feb 2022 01:36:50 +0000 (18:36 -0700)
commit4a06806e5d4a781d2c81f6064985018562b2604b
tree6538f853947200d47228711875e0e0b50f160ef6
parente3ede97657d8cfc4fd75aecad50269534bb55aed
cpupower: Introduce ACPI CPPC library

Kernel ACPI subsytem introduced the sysfs attributes for acpi cppc
library in below path:

/sys/devices/system/cpu/cpuX/acpi_cppc/

And these attributes will be used for AMD P-State driver to provide some
performance and frequency values.

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/Makefile
tools/power/cpupower/lib/acpi_cppc.c [new file with mode: 0644]
tools/power/cpupower/lib/acpi_cppc.h [new file with mode: 0644]