Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad7670dd authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Greg Kroah-Hartman
Browse files

x86/mm: Initialize text poking earlier



commit 5b93a83649c7cba3a15eb7e8959b250841acb1b1 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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221025201057.881703081@infradead.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 979366f5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -624,7 +624,7 @@ asmlinkage __visible void __init start_kernel(void)
	sort_main_extable();
	trap_init();
	mm_init();

	poking_init();
	ftrace_init();

	/* trace_printk can be enabled here */
@@ -763,8 +763,6 @@ asmlinkage __visible void __init start_kernel(void)
	taskstats_init_early();
	delayacct_init();

	poking_init();

	acpi_subsystem_init();
	arch_post_acpi_subsys_init();
	sfi_init_late();