x86/mm: Initialize text poking earlier
authorPeter Zijlstra <peterz@infradead.org>
Tue, 25 Oct 2022 19:38:25 +0000 (21:38 +0200)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 15 Dec 2022 18:37:26 +0000 (10:37 -0800)
commit5b93a83649c7cba3a15eb7e8959b250841acb1b1
tree455674e7e385ec1a38ded6e1c0ad5c912f587687
parent3f4c8211d982099be693be9aa7d6fc4607dff290
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
init/main.c