diff options
author | Kim Phillips <kim.phillips@amd.com> | 2021-08-17 17:10:46 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-08-26 09:14:36 +0200 |
commit | 9164d9493a792682143af12b182be12d7c32b195 (patch) | |
tree | 86371d5785e1d9c33e6612abc19060b6e253cea8 /arch/x86/kernel/cpu/amd.c | |
parent | 0a0b53e0c3793c0930d258786702d48d21fc6383 (diff) | |
download | linux-stable-9164d9493a792682143af12b182be12d7c32b195.tar.gz linux-stable-9164d9493a792682143af12b182be12d7c32b195.tar.bz2 linux-stable-9164d9493a792682143af12b182be12d7c32b195.zip |
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
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index b7c003013d41..2131af9f2fa2 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -438,7 +438,7 @@ static void srat_detect_node(struct cpuinfo_x86 *c) node = numa_cpu_node(cpu); if (node == NUMA_NO_NODE) - node = per_cpu(cpu_llc_id, cpu); + node = get_llc_id(cpu); /* * On multi-fabric platform (e.g. Numascale NumaChip) a |