EDAC, mce_amd: Use cpu_to_node() to find the node ID
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 20 Mar 2017 20:26:51 +0000 (15:26 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Jul 2017 05:01:08 +0000 (07:01 +0200)
commitfbe63acf62f57f8e51adae602c5ce1025002d5ee
treec4216c4f282031c5170821cb6df35d7008cff7b0
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
EDAC, mce_amd: Use cpu_to_node() to find the node ID

Using the homegrown amd_get_nb_id() to find a node ID on AMD was fine
while the L3 to node mapping was 1:1. And Zen topology broke this. So
let's start slowly moving away from it and use the topology interfaces
instead.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: x86-ml <x86@kernel.org>
Link: http://lkml.kernel.org/r/1490041614-90057-2-git-send-email-Yazen.Ghannam@amd.com
[ Massage commit message. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mce_amd.c