• Tejun Heo's avatar
    x86-64, NUMA: Unify the rest of memblk registration · fd0435d8
    Tejun Heo authored
    Move the remaining memblk registration logic from acpi_scan_nodes() to
    numa_register_memblks() and initmem_init().
    
    This applies nodes_cover_memory() sanity check, memory node sorting
    and node_online() checking, which were only applied to acpi, to all
    init methods.
    
    As all memblk registration is moved to common code, active range
    clearing is moved to initmem_init() too and removed from bad_srat().
    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>
    fd0435d8
srat_64.c 9.57 KB