perf/x86/uncore: Factor out uncore_device_to_die()
mainline inclusion from mainline-v6.3-rc1 commit dbf061b2 category: bugfix bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I7H29Y CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dbf061b26221fa1a99e6489dd61f5b4ee97a24e8 Intel-SIG: commit dbf061b2 perf/x86/uncore: Factor out uncore_device_to_die() Backport SPR MCC UPI uncore discovery warning fixes to OLK-5.10. ------------------------------------- The same code is used to retrieve the logical die ID with a given PCI device in both the discovery code and the code that supports a system with > 8 nodes. Factor out uncore_device_to_die() to replace the duplicate code. No functional change. Signed-off-by: NKan Liang <kan.liang@linux.intel.com> Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Tested-by: NMichael Petlan <mpetlan@redhat.com> Link: https://lore.kernel.org/r/20230112200105.733466-2-kan.liang@linux.intel.comSigned-off-by: NYunying Sun <yunying.sun@intel.com>
Showing
想要评论请 注册 或 登录