diff mbox series

[v3,3/6] init: Call static_call_init() from start_kernel()

Message ID 2e36882dfc63993f00d0213356c1537e0bf4f0cc.1662032631.git.christophe.leroy@csgroup.eu (mailing list archive)
State Changes Requested
Headers show
Series Implement inline static calls on PPC32 - v3 | expand

Commit Message

Christophe Leroy Sept. 1, 2022, 11:48 a.m. UTC
Call static_call_init() just after jump_label_init().

x86 already called it from setup_arch(). This is not a
problem as static_call_init() is guarded from double call.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
 init/main.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/init/main.c b/init/main.c
index 1fe7942f5d4a..71e7c96e1149 100644
--- a/init/main.c
+++ b/init/main.c
@@ -963,6 +963,7 @@  asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
 	pr_notice("Kernel command line: %s\n", saved_command_line);
 	/* parameters may set static keys */
 	jump_label_init();
+	static_call_init();
 	parse_early_param();
 	after_dashes = parse_args("Booting kernel",
 				  static_command_line, __start___param,