memblock: Implement memblock_is_memory and memblock_is_region_memory
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 4 Aug 2010 04:38:47 +0000 (14:38 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 4 Aug 2010 04:38:47 +0000 (14:38 +1000)
commit72d4b0b4e0e7fa858767e03972771a9f7c02b689
tree5cdf39edb6edbaa7f75da27ad1d9ce7864bb9448
parent411a25a80da328f5ae6b6c037872ffe867fcc130
memblock: Implement memblock_is_memory and memblock_is_region_memory

To make it fast, we steal ARM's binary search for memblock_is_memory()
and we use that to also the replace existing implementation of
memblock_is_reserved().

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/linux/memblock.h
mm/memblock.c