aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2023-04-19 10:44:13 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-05-24 18:46:19 +0200
commit9050a9cd5e4c848e265915d6e7b1f731e6e1e0e6 (patch)
tree3c207e631304171d98760e1cc779ca869c4b7504 /tools/perf/scripts/python/libxed.py
parentpowercap: intel_rapl: Use bitmap for Power Limits (diff)
downloadlinux-9050a9cd5e4c848e265915d6e7b1f731e6e1e0e6.tar.gz
linux-9050a9cd5e4c848e265915d6e7b1f731e6e1e0e6.zip
powercap: intel_rapl: Cleanup Power Limits support
The same set of operations are shared by different Powert Limits, including Power Limit get/set, Power Limit enable/disable, clamping enable/disable, time window get/set, and max power get/set, etc. But the same operation for different Power Limit has different primitives because they use different registers/register bits. A lot of dirty/duplicate code was introduced to handle this difference. Introduce a universal way to issue Power Limit operations. Instead of using hardcoded primitive name directly, use Power Limit id + operation type, and hide all the Power Limit difference details in a central place, get_pl_prim(). Two helpers, rapl_read_pl_data() and rapl_write_pl_data(), are introduced at the same time to simplify the code for issuing Power Limit operations. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Wang Wendy <wendy.wang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
eYueHaibing1-3/+1 2019-08-21net: stmmac: dwmac-anarion: use devm_platform_ioremap_resource() to simplify ...YueHaibing1-3/+1 2019-08-21net: stmmac: dwmac-meson: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21net: stmmac: dwmac-meson8b: use devm_platform_ioremap_resource() to simplify ...YueHaibing1-3/+1 2019-08-21net: systemport: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21net: bcmgenet: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21pxa168_eth: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-2/+1 2019-08-21net: mvneta: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21net: fec: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21ezchip: nps_enet: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21cirrus: cs89x0: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21net: sxgbe: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21net: ks8851-ml: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-5/+2 2019-08-21net: socionext: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21via-rhine: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+1 2019-08-21net: ethernet: ti: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-3/+2 2019-08-21amd-xgbe: use devm_platform_ioremap_resource() to simplify codeYueHaibing1-11/+8