diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-10-25 21:38:25 +0200 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2022-12-15 19:37:26 +0100 |
commit | 5b93a83649c7cba3a15eb7e8959b250841acb1b1 (patch) | |
tree | 455674e7e385ec1a38ded6e1c0ad5c912f587687 /init/main.c | |
parent | x86/mm: Use mm_alloc() in poking_init() (diff) | |
download | linux-5b93a83649c7cba3a15eb7e8959b250841acb1b1.tar.xz linux-5b93a83649c7cba3a15eb7e8959b250841acb1b1.zip |
x86/mm: Initialize text poking earlier
Move poking_init() up a bunch; specifically move it right after
mm_init() which is right before ftrace_init().
This will allow simplifying ftrace text poking which currently has
a bunch of exceptions for early boot.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221025201057.881703081@infradead.org
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c index f1d1a549e1cc..5372ea243735 100644 --- a/init/main.c +++ b/init/main.c @@ -996,7 +996,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) sort_main_extable(); trap_init(); mm_init(); - + poking_init(); ftrace_init(); /* trace_printk can be enabled here */ @@ -1135,7 +1135,6 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) taskstats_init_early(); delayacct_init(); - poking_init(); check_bugs(); acpi_subsystem_init(); |