File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 26
26
#include <linux/pgtable.h>
27
27
#include <linux/stackprotector.h>
28
28
#include <linux/utsname.h>
29
+ #include <linux/efi.h>
29
30
30
31
#include <asm/alternative.h>
31
32
#include <asm/cmdline.h>
@@ -2529,6 +2530,12 @@ void __init arch_cpu_finalize_init(void)
2529
2530
fpu__init_system ();
2530
2531
fpu__init_cpu ();
2531
2532
2533
+ /*
2534
+ * This needs to follow the FPU initializtion, since EFI depends on it.
2535
+ */
2536
+ if (efi_enabled (EFI_RUNTIME_SERVICES ))
2537
+ efi_enter_virtual_mode ();
2538
+
2532
2539
/*
2533
2540
* Ensure that access to the per CPU representation has the initial
2534
2541
* boot CPU configuration.
Original file line number Diff line number Diff line change 53
53
#include <linux/cpuset.h>
54
54
#include <linux/memcontrol.h>
55
55
#include <linux/cgroup.h>
56
- #include <linux/efi.h>
57
56
#include <linux/tick.h>
58
57
#include <linux/sched/isolation.h>
59
58
#include <linux/interrupt.h>
@@ -1068,10 +1067,6 @@ void start_kernel(void)
1068
1067
1069
1068
pid_idr_init ();
1070
1069
anon_vma_init ();
1071
- #ifdef CONFIG_X86
1072
- if (efi_enabled (EFI_RUNTIME_SERVICES ))
1073
- efi_enter_virtual_mode ();
1074
- #endif
1075
1070
thread_stack_cache_init ();
1076
1071
cred_init ();
1077
1072
fork_init ();
You can’t perform that action at this time.
0 commit comments