Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: processor: Drop duplicate setting of shared_cpu_map

'shared_cpu_map', stored as part of the per-processor
acpi_processor_performance structre, is used to store CPUs that share
a performance domain. By definition it contains the owning CPU.

While building the 'shared_cpu_map' it is being set twice - once while
initialising the performance domains and again when matching CPUs
belonging to the same domain.

Drop the unnecessary initialisation.

Signed-off-by: Punit Agrawal <punitagrawal@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Punit Agrawal and committed by
Rafael J. Wysocki
55130fb2 418baf2c

-1
-1
drivers/acpi/processor_perflib.c
··· 616 616 continue; 617 617 618 618 pr->performance = per_cpu_ptr(performance, i); 619 - cpumask_set_cpu(i, pr->performance->shared_cpu_map); 620 619 pdomain = &(pr->performance->domain_info); 621 620 if (acpi_processor_get_psd(pr->handle, pdomain)) { 622 621 retval = -EINVAL;