perf/x86/intel: Factor out the initialization code for SPR
authorKan Liang <kan.liang@linux.intel.com>
Tue, 29 Aug 2023 12:58:02 +0000 (05:58 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2023 18:59:22 +0000 (20:59 +0200)
commit0ba0c03528e918a8f6b5aa63d502fdc6a9d80fc7
treeb55e0e4913c56a9e021808b2e6a85a2b120f7124
parentd4b5694c75d4eba8238d541a55da0c67e876213e
perf/x86/intel: Factor out the initialization code for SPR

The SPR and ADL p-core have a similar uarch. Most of the initialization
code can be shared.

Factor out intel_pmu_init_glc() for the common initialization code.
The common part of the ADL p-core will be replaced by the later patch.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230829125806.3016082-3-kan.liang@linux.intel.com
arch/x86/events/intel/core.c