memblock: Implement for_each_free_mem_range()
authorTejun Heo <tj@kernel.org>
Tue, 12 Jul 2011 09:15:59 +0000 (11:15 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 14 Jul 2011 18:47:47 +0000 (11:47 -0700)
commit35fd0808d7d8d001cd72f112e3bca84664b596a3
treed4e21e003e182bc4824a74fd850ac3869380b53b
parentab5d140b9eafae402aa3e673a63c5ef6164a9dd2
memblock: Implement for_each_free_mem_range()

Implement for_each_free_mem_range() which iterates over free memory
areas according to memblock (memory && !reserved).  This will be used
to simplify memblock users.

Signed-off-by: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1310462166-31469-7-git-send-email-tj@kernel.org
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
include/linux/memblock.h
mm/memblock.c