• Tejun Heo's avatar
    x86-64, NUMA: Make dummy node initialization path similar to non-dummy ones · 7d36b7bc
    Tejun Heo authored
    Dummy node initialization in initmem_init() didn't initialize apicid
    to node mapping and set cpu to node mapping directly by caling
    numa_set_node(), which is different from non-dummy init paths.
    
    Update it such that they behave similarly.  Initialize apicid to node
    mapping and call numa_init_array().  The actual cpu to node mapping is
    handled by init_cpu_to_node() later.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarYinghai 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>
    7d36b7bc
numa_64.c 19.2 KB