diff options
author | John B. Wyatt IV <jwyatt@redhat.com> | 2024-09-04 22:19:08 -0400 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-09-05 18:48:57 -0600 |
commit | 4b80294fb53845dc5c98cca0c989da09150f2ca9 (patch) | |
tree | 857dcb927571d48880bad1b00ffd454e01e31a2e | |
parent | 76fb981ad6774b82f06703c896b492c8659b543b (diff) |
pm:cpupower: Add missing powercap_set_enabled() stub function
There was a symbol listed in the powercap.h file that was not implemented.
Implement it with a stub return of 0.
Programs like SWIG require that functions that are defined in the
headers be implemented.
Fixes: c2294c1496b7 ("cpupower: Introduce powercap intel-rapl library and powercap-info command")
Suggested-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: John B. Wyatt IV <jwyatt@redhat.com>
Signed-off-by: John B. Wyatt IV <sageofredondo@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r-- | tools/power/cpupower/lib/powercap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/power/cpupower/lib/powercap.c b/tools/power/cpupower/lib/powercap.c index a7a59c6bacda..94a0c69e55ef 100644 --- a/tools/power/cpupower/lib/powercap.c +++ b/tools/power/cpupower/lib/powercap.c @@ -78,6 +78,14 @@ int powercap_get_enabled(int *mode) } /* + * TODO: implement function. Returns dummy 0 for now. + */ +int powercap_set_enabled(int mode) +{ + return 0; +} + +/* * Hardcoded, because rapl is the only powercap implementation - * this needs to get more generic if more powercap implementations * should show up |