x86/CPU/AMD: Remove amd_get_nb_id()
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 9 Nov 2020 21:06:57 +0000 (21:06 +0000)
committerBorislav Petkov <bp@suse.de>
Thu, 19 Nov 2020 10:43:17 +0000 (11:43 +0100)
commitdb970bd231c2264a062e0de4dcf4ead5e6669e7a
tree08f0a299d58b2051fa9b66aca5925d0273475e24
parent028c221ed1904af9ac3c5162ee98f48966de6b3d
x86/CPU/AMD: Remove amd_get_nb_id()

The Last Level Cache ID is returned by amd_get_nb_id(). In practice,
this value is the same as the AMD NodeId for callers of this function.
The NodeId is saved in struct cpuinfo_x86.cpu_die_id.

Replace calls to amd_get_nb_id() with the logical CPU's cpu_die_id and
remove the function.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201109210659.754018-3-Yazen.Ghannam@amd.com
arch/x86/events/amd/core.c
arch/x86/include/asm/processor.h
arch/x86/kernel/amd_nb.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/cacheinfo.c
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/inject.c
drivers/edac/amd64_edac.c
drivers/edac/mce_amd.c