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

The socket and die information is required to register/unregister a PMU
in the uncore PCI sub driver. The codes, which get the socket and die
information from a BUS number, can be shared.

Factor out uncore_pci_get_dev_die_info(), 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-2-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c