• Tejun Heo's avatar
    memblock: Separate out memblock_isolate_range() from memblock_set_node() · 6a9ceb31
    Tejun Heo authored
    memblock_set_node() operates in three steps - break regions crossing
    boundaries, set nid and merge back regions.  This patch separates the
    first part into a separate function - memblock_isolate_range(), which
    breaks regions crossing range boundaries and returns range index range
    for regions properly contained in the specified memory range.
    
    This doesn't introduce any behavior change and will be used to further
    unify region handling.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    6a9ceb31
memblock.c 27 KB