summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/mm_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c
index 779b4e3d6339..1bab27398302 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -2321,6 +2321,7 @@ void set_zone_contiguous(struct zone *zone)
zone->contiguous = true;
}
+static void __init mem_init_print_info(void);
void __init page_alloc_init_late(void)
{
struct zone *zone;
@@ -2347,6 +2348,8 @@ void __init page_alloc_init_late(void)
files_maxfiles_init();
#endif
+ /* Accounting of total+free memory is stable at this point. */
+ mem_init_print_info();
buffer_init();
/* Discard memblock private memory */
@@ -2707,7 +2710,6 @@ void __init mm_core_init(void)
kmsan_init_shadow();
stack_depot_early_init();
mem_init();
- mem_init_print_info();
kmem_cache_init();
/*
* page_owner must be initialized after buddy is ready, and also after