提交 2449f343 编写于 作者: T Tang Chen 提交者: H. Peter Anvin

x86: Use memblock_set_current_limit() to set limit for memblock.

In setup_arch() of x86, it set memblock.current_limit directly.
We should use memblock_set_current_limit(). If the implementation
is changed, it is easy to maintain.
Signed-off-by: NTang Chen <tangchen@cn.fujitsu.com>
Link: http://lkml.kernel.org/r/1376451844-15682-1-git-send-email-tangchen@cn.fujitsu.comSigned-off-by: NH. Peter Anvin <hpa@linux.intel.com>
上级 d4f5228c
......@@ -1070,7 +1070,7 @@ void __init setup_arch(char **cmdline_p)
cleanup_highmap();
memblock.current_limit = ISA_END_ADDRESS;
memblock_set_current_limit(ISA_END_ADDRESS);
memblock_x86_fill();
/*
......@@ -1103,7 +1103,7 @@ void __init setup_arch(char **cmdline_p)
setup_real_mode();
memblock.current_limit = get_max_mapped();
memblock_set_current_limit(get_max_mapped());
dma_contiguous_reserve(0);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册