perf/x86/intel/uncore: Factor out uncore_pci_find_dev_pmu()
authorKan Liang <kan.liang@linux.intel.com>
Mon, 14 Sep 2020 14:34:16 +0000 (07:34 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 24 Sep 2020 13:55:50 +0000 (15:55 +0200)
commit8ed2ccaa3fa990be61619a61b9bc3914eefdc18f
tree12599558877fc8daac5e6f12db9a6403d2ba898b
parentfe6507338d635f283e9618b5eaa35f503a8c375b
perf/x86/intel/uncore: Factor out uncore_pci_find_dev_pmu()

When an uncore PCI sub driver gets a remove notification, the
corresponding PMU has to be retrieved and unregistered. The codes, which
find the corresponding PMU by comparing the pci_device_id table, can be
shared.

Factor out uncore_pci_find_dev_pmu(), which will be used later.

There is no functional change.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1600094060-82746-3-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c