summaryrefslogtreecommitdiff
path: root/arch/x86/events/intel/uncore_discovery.h
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2021-03-17 20:59:35 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-04-02 11:04:54 +0300
commit6477dc3934775f82a571fac469fd8c348e611095 (patch)
tree2532381cb328241116a3bfd0a92622ae6e102b30 /arch/x86/events/intel/uncore_discovery.h
parentd6c754130435ab786711bed75d04a2388a6b4da8 (diff)
downloadlinux-6477dc3934775f82a571fac469fd8c348e611095.tar.xz
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
Diffstat (limited to 'arch/x86/events/intel/uncore_discovery.h')
0 files changed, 0 insertions, 0 deletions