perf/x86/intel/uncore: Generalize get_topology() for SKX PMUs
authorAlexander Antonov <alexander.antonov@linux.intel.com>
Thu, 17 Nov 2022 12:28:27 +0000 (12:28 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 24 Nov 2022 10:09:22 +0000 (11:09 +0100)
commit07813e2a59c93f10716ffa33d608d2c0685cf85b
tree242cc7d4a2fb3177d76eff2dcfe09703e3c6b366
parentefe062705d149b20a15498cb999a9edbb8241e6f
perf/x86/intel/uncore: Generalize get_topology() for SKX PMUs

Factor out a generic code from skx_iio_get_topology() to skx_pmu_get_topology()
to avoid code duplication. This code will be used by get_topology() procedure
for SKX UPI PMUs in the further patch.

Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20221117122833.3103580-6-alexander.antonov@linux.intel.com
arch/x86/events/intel/uncore_snbep.c