perf/x86/intel: Factor out the initialization code for ADL e-core
authorKan Liang <kan.liang@linux.intel.com>
Tue, 29 Aug 2023 12:58:03 +0000 (05:58 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2023 18:59:22 +0000 (20:59 +0200)
commitd87d221f854b62f5e8026505497d33404ef6050c
tree3f5874cb9f3cb96ccdbdfaa11f7077397d995dab
parent0ba0c03528e918a8f6b5aa63d502fdc6a9d80fc7
perf/x86/intel: Factor out the initialization code for ADL e-core

From PMU's perspective, the ADL e-core and newer SRF/GRR have a similar
uarch. Most of the initialization code can be shared.

Factor out intel_pmu_init_grt() for the common initialization code.
The common part of the ADL e-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-4-kan.liang@linux.intel.com
arch/x86/events/intel/core.c