summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-10-25 21:38:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-08 19:56:36 +0200
commit979366f5c2aa6dc7415f30002b771c671afcb59d (patch)
tree45942b55fec768641962bf1c1776b24f582a296b /init
parent3d1b8cfdd0c9e2d941f96b09738472ecf91bc599 (diff)
mm: Move mm_cachep initialization to mm_init()
commit af80602799681c78f14fbe20b6185a56020dedee upstream. In order to allow using mm_alloc() much earlier, move initializing mm_cachep into mm_init(). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20221025201057.751153381@infradead.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
-rw-r--r--init/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index 2091524f945d..9651440ec0cc 100644
--- a/init/main.c
+++ b/init/main.c
@@ -563,6 +563,7 @@ static void __init mm_init(void)
init_espfix_bsp();
/* Should be run after espfix64 is set up. */
pti_init();
+ mm_cache_init();
}
void __init __weak arch_call_rest_init(void)