projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4f5228
)
x86: Use memblock_set_current_limit() to set limit for memblock.
author
Tang Chen
<tangchen@cn.fujitsu.com>
Wed, 14 Aug 2013 03:44:04 +0000
(11:44 +0800)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Wed, 14 Aug 2013 04:27:02 +0000
(21:27 -0700)
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: Tang Chen <tangchen@cn.fujitsu.com>
Link:
http://lkml.kernel.org/r/1376451844-15682-1-git-send-email-tangchen@cn.fujitsu.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/setup.c
b/arch/x86/kernel/setup.c
index
f8ec578
..
de33798
100644
(file)
--- a/
arch/x86/kernel/setup.c
+++ b/
arch/x86/kernel/setup.c
@@
-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);
/*