OSDN Git Service

perf/x86/intel/uncore: Rename uncore_notifier to uncore_pci_sub_notifier
authorKan Liang <kan.liang@linux.intel.com>
Wed, 17 Mar 2021 17:59:35 +0000 (10:59 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 2 Apr 2021 08:04:54 +0000 (10:04 +0200)
commit6477dc3934775f82a571fac469fd8c348e611095
tree2532381cb328241116a3bfd0a92622ae6e102b30
parentd6c754130435ab786711bed75d04a2388a6b4da8
perf/x86/intel/uncore: Rename uncore_notifier to uncore_pci_sub_notifier

Perf will use a similar method to the PCI sub driver to register
the PMUs for the PCI type of uncore blocks. The method requires a BUS
notifier to support hotplug. The current BUS notifier cannot be reused,
because it searches a const id_table for the corresponding registered
PMU. The PCI type of uncore blocks in the discovery tables doesn't
provide an id_table.

Factor out uncore_bus_notify() and add the pointer of an id_table as a
parameter. The uncore_bus_notify() will be reused in the following
patch.

The current BUS notifier is only used by the PCI sub driver. Its name is
too generic. Rename it to uncore_pci_sub_notifier, which is specific for
the PCI sub driver.

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/1616003977-90612-4-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c