OSDN Git Service

cpupower: Add the function to get the sysfs value from specific table
authorHuang Rui <ray.huang@amd.com>
Tue, 22 Feb 2022 15:34:20 +0000 (23:34 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 23 Feb 2022 01:36:44 +0000 (18:36 -0700)
commite3ede97657d8cfc4fd75aecad50269534bb55aed
tree7ee09a025a8bb61fba8a554a6228c62e8d3a9bc9
parent083792f368b8ceea7ae035b6641e9cef3aceb366
cpupower: Add the function to get the sysfs value from specific table

Expose the helper into cpufreq header, then cpufreq driver can use this
function to get the sysfs value if it has any specific sysfs interfaces.

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/lib/cpufreq.c
tools/power/cpupower/lib/cpufreq.h