diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-10-25 21:38:18 +0200 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2022-12-15 10:37:26 -0800 |
commit | af80602799681c78f14fbe20b6185a56020dedee (patch) | |
tree | 3ce25b00c8bc5261899ce15b8031becd7a0d480b /init | |
parent | 97e3d26b5e5f371b3ee223d94dd123e6c442ba80 (diff) | |
download | linux-stable-af80602799681c78f14fbe20b6185a56020dedee.tar.gz linux-stable-af80602799681c78f14fbe20b6185a56020dedee.tar.bz2 linux-stable-af80602799681c78f14fbe20b6185a56020dedee.zip |
mm: Move mm_cachep initialization to mm_init()
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
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index aa21add5f7c5..f1d1a549e1cc 100644 --- a/init/main.c +++ b/init/main.c @@ -860,6 +860,7 @@ static void __init mm_init(void) /* Should be run after espfix64 is set up. */ pti_init(); kmsan_init_runtime(); + mm_cache_init(); } #ifdef CONFIG_RANDOMIZE_KSTACK_OFFSET |