Message ID | 20240905021916.15938-2-jwyatt@redhat.com |
---|---|
State | Accepted |
Commit | 4b80294fb53845dc5c98cca0c989da09150f2ca9 |
Headers | show |
Series | [v3,1/4] pm:cpupower: Add missing powercap_set_enabled() stub function | expand |
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 @@ -77,6 +77,14 @@ int powercap_get_enabled(int *mode) return sysfs_get_enabled(path, 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