Re: [PATCH v7u1 25/31] memblock: add memblock_mem_size()

2013-01-14 Thread Yinghai Lu
On Mon, Jan 14, 2013 at 12:42 PM, H. Peter Anvin wrote: > On 01/03/2013 04:48 PM, Yinghai Lu wrote: >> >> - mapped_size = get_mem_size(max_pfn_mapped); >> + mapped_size = (u64)memblock_mem_size(max_pfn_mapped); > > This cast is completely unnecessary. ok, dropped that cast. -- To unsubscr

Re: [PATCH v7u1 25/31] memblock: add memblock_mem_size()

2013-01-14 Thread H. Peter Anvin
On 01/03/2013 04:48 PM, Yinghai Lu wrote: > > - mapped_size = get_mem_size(max_pfn_mapped); > + mapped_size = (u64)memblock_mem_size(max_pfn_mapped); This cast is completely unnecessary. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

[PATCH v7u1 25/31] memblock: add memblock_mem_size()

2013-01-03 Thread Yinghai Lu
Use it to get mem size under the limit_pfn. to replace local version in x86 reserved_initrd. Signed-off-by: Yinghai Lu --- arch/x86/kernel/setup.c | 16 +--- include/linux/memblock.h |1 + mm/memblock.c| 17 + 3 files changed, 19 insertions(+), 15