Loading
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>