]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf377c62ba11a184297ad81dd2fedc4fef4e3d0a
tree6dcea5796820a3931a6010c62d08244b1dae5f3d
parent8d6baf009c6af1a89a58420568e86ae8e5ac3097
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