x86/mm: Initialize text poking earlier
commit 5b93a83649 upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1ff14defdf
commit
79972c2b95
+1
-3
@@ -900,7 +900,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
|
|||||||
sort_main_extable();
|
sort_main_extable();
|
||||||
trap_init();
|
trap_init();
|
||||||
mm_init();
|
mm_init();
|
||||||
|
poking_init();
|
||||||
ftrace_init();
|
ftrace_init();
|
||||||
|
|
||||||
/* trace_printk can be enabled here */
|
/* trace_printk can be enabled here */
|
||||||
@@ -1035,8 +1035,6 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
|
|||||||
taskstats_init_early();
|
taskstats_init_early();
|
||||||
delayacct_init();
|
delayacct_init();
|
||||||
|
|
||||||
poking_init();
|
|
||||||
|
|
||||||
acpi_subsystem_init();
|
acpi_subsystem_init();
|
||||||
arch_post_acpi_subsys_init();
|
arch_post_acpi_subsys_init();
|
||||||
sfi_init_late();
|
sfi_init_late();
|
||||||
|
|||||||
Reference in New Issue
Block a user