powerpc/mm: Simplify page_is_ram by using memblock_is_memory
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 28 Mar 2018 00:25:40 +0000 (02:25 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 31 Mar 2018 13:47:42 +0000 (00:47 +1100)
commit2615c93e5f52db62586112793d889face99eb905
tree53efed7c8daa258b0f96523acfdc4de6ca984ce2
parent041413b88d6e9c66582d0a38d0e82f8933d42d9a
powerpc/mm: Simplify page_is_ram by using memblock_is_memory

Instead of open-coding the search in page_is_ram, call memblock_is_memory.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/mem.c