summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorKurt Borja <kuurtb@gmail.com>2025-03-25 23:39:53 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-03-27 22:44:29 +0300
commit3035a6dd2d4736738949600b8abebbdb181e86ef (patch)
tree10d1e3c4d22311c59b372dedbce24d1fa06158bc /tools/perf/scripts/python/libxed.py
parent21e0ff5b10ec1b61fda435d42db4ba80d0cdfded (diff)
downloadlinux-3035a6dd2d4736738949600b8abebbdb181e86ef.tar.xz
ACPI: platform_profile: Optimize _aggregate_choices()
Choices aggregates passed to _aggregate_choices() are already filled with ones, therefore we can avoid copying a new bitmap on the first iteration. This makes setting the PLATFORM_PROFILE_LAST bit on aggregates unnecessary, so drop it as well. While at it, add a couple empty lines to improve style. Reviewed-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Kurt Borja <kuurtb@gmail.com> Link: https://patch.msgid.link/20250325-pprof-opt-v2-1-736291e6e66b@gmail.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