diff options
author | Yinghai Lu <yinghai@kernel.org> | 2013-01-24 15:20:09 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-29 22:32:57 -0500 |
commit | 595ad9af8584908ea5fb698b836169d05b99f186 (patch) | |
tree | 851492cc2fa5c02b4b5122b7af154f7a8d7777c3 /include/linux/memblock.h | |
parent | d1af6d045fba6b070fa81f54dfe9227214be99ea (diff) |
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>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index d452ee191066..f388203db7e8 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -155,6 +155,7 @@ phys_addr_t memblock_alloc_base(phys_addr_t size, phys_addr_t align, | |||
155 | phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t align, | 155 | phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t align, |
156 | phys_addr_t max_addr); | 156 | phys_addr_t max_addr); |
157 | phys_addr_t memblock_phys_mem_size(void); | 157 | phys_addr_t memblock_phys_mem_size(void); |
158 | phys_addr_t memblock_mem_size(unsigned long limit_pfn); | ||
158 | phys_addr_t memblock_start_of_DRAM(void); | 159 | phys_addr_t memblock_start_of_DRAM(void); |
159 | phys_addr_t memblock_end_of_DRAM(void); | 160 | phys_addr_t memblock_end_of_DRAM(void); |
160 | void memblock_enforce_memory_limit(phys_addr_t memory_limit); | 161 | void memblock_enforce_memory_limit(phys_addr_t memory_limit); |