Skip to content
  • Tejun Heo's avatar
    x86, NUMA: Initialize and use remap allocator from setup_node_bootmem() · 7888e96b
    Tejun Heo authored
    
    
    setup_node_bootmem() is taken from 64bit and doesn't use remap
    allocator.  It's about to be shared with 32bit so add support for it.
    If NODE_DATA is remapped, it's noted in the debug message and node
    locality check is skipped as the __pa() of the remapped address
    doesn't reflect the actual physical address.
    
    On 64bit, remap allocator becomes noop and doesn't affect the
    behavior.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    7888e96b