]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/efi: Move runtime service initialization to arch/x86
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 20 Jun 2025 13:53:12 +0000 (16:53 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Fri, 20 Jun 2025 17:48:50 +0000 (10:48 -0700)
commitce2c403c26c1ed0e28fc541ab30fe13ff50236be
tree6c71b2ce788c860d12a4142bcf8641ec565c4b0f
parente04c78d86a9699d136910cfc0bdcf01087e3267e
x86/efi: Move runtime service initialization to arch/x86

The EFI call in start_kernel() is guarded by #ifdef CONFIG_X86. Move
the thing to the arch_cpu_finalize_init() path on x86 and get rid of
the #ifdef in start_kernel().

No functional change intended.

Suggested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/all/20250620135325.3300848-5-kirill.shutemov%40linux.intel.com
arch/x86/kernel/cpu/common.c
init/main.c