memblock: Add memblock_mem_size()
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:20:09 +0000 (12:20 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 Jan 2013 03:32:57 +0000 (19:32 -0800)
commit595ad9af8584908ea5fb698b836169d05b99f186
tree851492cc2fa5c02b4b5122b7af154f7a8d7777c3
parentd1af6d045fba6b070fa81f54dfe9227214be99ea
memblock: Add memblock_mem_size()

Use it to get mem size under the limit_pfn.
to replace local version in x86 reserved_initrd.

-v2: remove not needed cast that is pointed out by HPA.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-29-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/setup.c
include/linux/memblock.h
mm/memblock.c