Re: [PATCH] parisc: use memblock_alloc() instead of custom get_memblock()

2019-02-12 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 06:14:18AM -0800, Matthew Wilcox wrote: > On Tue, Feb 12, 2019 at 03:59:50PM +0200, Mike Rapoport wrote: > > -static void * __init get_memblock(unsigned long size) > > -{ > > - static phys_addr_t search_addr __initdata; > > - phys_addr_t phys; > > - > > - if

Re: [PATCH] parisc: use memblock_alloc() instead of custom get_memblock()

2019-02-12 Thread Matthew Wilcox
On Tue, Feb 12, 2019 at 03:59:50PM +0200, Mike Rapoport wrote: > -static void * __init get_memblock(unsigned long size) > -{ > - static phys_addr_t search_addr __initdata; > - phys_addr_t phys; > - > - if (!search_addr) > - search_addr = PAGE_ALIGN(__pa((unsigned long)

[PATCH] parisc: use memblock_alloc() instead of custom get_memblock()

2019-02-12 Thread Mike Rapoport
The get_memblock() function implements custom bottom-up memblock allocator. Setting 'memblock_bottom_up = true' before any memblock allocation is done allows replacing get_memblock() calls with memblock_alloc(). Signed-off-by: Mike Rapoport --- arch/parisc/mm/init.c | 52