[PATCH 04/39] lmb: Move lmb.c to mm/
lmb.c is memory related, so move it to mm/. It is suggested by Ingo Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- lib/Makefile | 2 -- mm/Makefile | 2 ++ {lib => mm}/lmb.c | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {lib => mm}/lmb.c (100%) diff --git a/lib/Makef... 9 Apr 2010 02:21
[PATCH 14/39] lmb: Add find_memory_core_early()
According to node range in early_node_map[] with __lmb_find_area to find free range. Will be used by lmb_find_area_node() lmb_find_area_node will be used to find right buffer for NODE_DATA Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/mm.h | 2 ++ mm/page_alloc.c | 29 ++++++++++... 9 Apr 2010 02:21
[PATCH 35/39] x86: make e820 to be __initdata
Finally no user after init boot stage. We can free it to save some bytes. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/include/asm/e820.h | 2 -- arch/x86/kernel/e820.c | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/inclu... 9 Apr 2010 02:21
[PATCH 27/39] x86, lmb: turn off ARCH_LMB_FIND_AREA
32bit now can use generic __find_lmb_area now. So we can turn arch one off Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index da9040b..bbe4e99 100644 --- a/arch/x86/Kconfig ++... 9 Apr 2010 02:21
[PATCH 34/39] x86: Use walk_system_ream_range() instead of referring e820.map directly for tboot
So we can make e820 to be __initdata Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/kernel/tboot.c | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c index cc2c604..cf27d64 100644 --- a/arch/x86/kernel/... 9 Apr 2010 02:21
[PATCH 03/39] x86: Align e820 ram range to page
to workaround wrong BIOS memory map. Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- arch/x86/kernel/e820.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 14d0a1a..73dc6a7 100644 ---... 9 Apr 2010 02:21
[PATCH 37/39] mm: move contig_page_data define to bootmem.c/nobootmem.c
We can remove #ifdef in mm/page_alloc.c Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- mm/bootmem.c | 7 +++++++ mm/nobootmem.c | 5 +++++ mm/page_alloc.c | 9 --------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/mm/bootmem.c b/mm/bootmem.c index 2741c34..ff55ad7 100644... 9 Apr 2010 02:21
[PATCH 23/39] x86, lmb: Add x86 version of __lmb_find_area()
Generic version is going from high to low, and it seems it can not find right area compact enough. the x86 version will go from goal to limit and just like the way We used for early_res use ARCH_FIND_LMB_AREA to select from them. For 32 bit have to use CONFIG_ARCH_FIND_LMB_AREA=y, because some alloc_bootmem ... 9 Apr 2010 02:21
[PATCH 17/39] lmb: Add lmb_memory_size()
It will return memory size in specified range according to lmb.memory.region Try to share some code with lmb_free_memory_size() by passing get_free to __lmb_memory_size(). Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 1 + mm/lmb.c | 18 +++++++++++++++++- 2 files ... 9 Apr 2010 02:21
[PATCH 05/39] lmb: Seperate region array from lmb_region struct
lmb_init() will connect them back. Add nr_regions in struct lmb_region to track region array size. So later We can install dynamically allocated region array to that pointer Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- include/linux/lmb.h | 3 ++- mm/lmb.c | 9 ++++++++- 2 files chang... 9 Apr 2010 02:21