diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-02-14 01:08:15 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-30 23:34:25 +1100 |
commit | b575454fa330aab2d65cf17812ca8e1f405ae80d (patch) | |
tree | 2675105186f131b1e26b08d251186cc7fe0ed19e /include | |
parent | 384e8067844fc19f9c067d6b03cbc8781f98bd5d (diff) | |
download | linux-b575454fa330aab2d65cf17812ca8e1f405ae80d.tar.gz linux-b575454fa330aab2d65cf17812ca8e1f405ae80d.tar.bz2 linux-b575454fa330aab2d65cf17812ca8e1f405ae80d.zip |
mm: make memblock_alloc_base_nid() non-static
This will be used by powerpc to allocate per-cpu stacks and other
data structures node-local where possible.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Drop stray change to memblock_alloc_range() as noticed by akpm]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/memblock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 8be5077efb5f..4e1e3d0b002a 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -319,6 +319,9 @@ static inline bool memblock_bottom_up(void) phys_addr_t __init memblock_alloc_range(phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, ulong flags); +phys_addr_t memblock_alloc_base_nid(phys_addr_t size, + phys_addr_t align, phys_addr_t max_addr, + int nid, ulong flags); phys_addr_t memblock_alloc_base(phys_addr_t size, phys_addr_t align, phys_addr_t max_addr); phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t align, |