• Tejun Heo's avatar
    x86-64, NUMA: Unify emulated distance mapping · e23bba60
    Tejun Heo authored
    NUMA emulation needs to update node distance information.  It did it
    by remapping apicid to PXM mapping, even when amdtopology is being
    used.  There is no reason to go through such convolution.  The generic
    code has all the information necessary to transform the distance table
    to the emulated nid space.
    
    Implement generic distance table transformation in numa_emulation()
    and drop private implementations in srat_64 and amdtopology_64.  This
    makes find_node_by_addr() and fake_physnodes() and related functions
    unnecessary, drop them.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Cyrill Gorcunov <gorcunov@gmail.com>
    Cc: Shaohui Zheng <shaohui.zheng@intel.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: H. Peter Anvin <hpa@linux.intel.com>
    e23bba60
srat_64.c 6.12 KB