mm: fix the page_owner initializing issue for arm32
arm32 original logic: 1. allocated memory for page_ext(using memblock). 2. invoke the init callback of page_ext_ops like page_owner(using buddy). 3. initialize buddy. after this change: 1. allocated memory for page_ext(using memblock). 2. initialize buddy. 3. invoke the init callback of page_ext_ops like page_owner(using buddy). with the change, failure/dummy_handle can get its correct value. Change-Id: I6598481299da115ff4be50bf0e5a61a012d5ac83 Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
This commit is contained in:
@@ -541,6 +541,8 @@ static void __init mm_init(void)
|
||||
page_ext_init_flatmem();
|
||||
report_meminit();
|
||||
mem_init();
|
||||
/* page_owner must be initialized after buddy is ready */
|
||||
page_ext_init_flatmem_late();
|
||||
kmem_cache_init();
|
||||
pgtable_init();
|
||||
vmalloc_init();
|
||||
|
||||
Reference in New Issue
Block a user