arm_pmu: acpi: factor out PMU<->CPU association
authorMark Rutland <mark.rutland@arm.com>
Fri, 30 Sep 2022 11:18:42 +0000 (12:18 +0100)
committerWill Deacon <will@kernel.org>
Mon, 7 Nov 2022 16:16:19 +0000 (16:16 +0000)
commitad51b5043bb39e0d715e8ad910fa5ac899ebc70b
tree25319060600e9973c6489efb7eee4046ab1c8702
parent05da178ce0aa152f0592e10fa874054187f3621b
arm_pmu: acpi: factor out PMU<->CPU association

A subsequent patch will rework the ACPI probing of PMUs, and we'll need
to associate a CPU with a PMU in two separate paths.

Factor out the association logic into a helper function so that it can
be reused.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Pierre Gondois <pierre.gondois@arm.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-and-tested-by: Pierre Gondois <pierre.gondois@arm.com>
Link: https://lore.kernel.org/r/20220930111844.1522365-2-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmu_acpi.c