]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8e46979d1f084aa358c57b9a65030759efdab79
tree53efed7c8daa258b0f96523acfdc4de6ca984ce2
parentf6150297b6ea73311ac6fc5045b86407a14b602a
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