x86/cpu: Add get_llc_id() helper function
authorKim Phillips <kim.phillips@amd.com>
Tue, 17 Aug 2021 22:10:46 +0000 (17:10 -0500)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Aug 2021 07:14:36 +0000 (09:14 +0200)
commit9164d9493a792682143af12b182be12d7c32b195
tree86371d5785e1d9c33e6612abc19060b6e253cea8
parent0a0b53e0c3793c0930d258786702d48d21fc6383
x86/cpu: Add get_llc_id() helper function

Factor out a helper function rather than export cpu_llc_id, which is
needed in order to be able to build the AMD uncore driver as a module.

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210817221048.88063-7-kim.phillips@amd.com
arch/x86/events/amd/uncore.c
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/common.c