Skip to content

Commit

Permalink
ACPI: processor: Drop duplicate setting of shared_cpu_map
Browse files Browse the repository at this point in the history
'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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
punitagrawal authored and rafaeljw committed Nov 25, 2020
1 parent 418baf2 commit 55130fb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,6 @@ int acpi_processor_preregister_performance(
continue;

pr->performance = per_cpu_ptr(performance, i);
cpumask_set_cpu(i, pr->performance->shared_cpu_map);
pdomain = &(pr->performance->domain_info);
if (acpi_processor_get_psd(pr->handle, pdomain)) {
retval = -EINVAL;
Expand Down

0 comments on commit 55130fb

Please sign in to comment.