author: Valentin Schneider <valentin.schneider@arm.com> 2021-05-12 10:46:36 +0100
committer: Ingo Molnar <mingo@kernel.org> 2021-05-12 13:01:45 +0200
commit: f1a0a376ca0c4ef1fc3d24e3e502acbb5b795674
parent: 9f26990074931bbf797373e53104216059b300b1
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 5 deletions
diff --git a/init/main.c b/init/main.c
index eb01e121d2f1..7b027d9c5c89 100644
--- a/init/main.c
+++ b/init/main.c
@@ -941,11 +941,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
* time - but meanwhile we still have a functioning scheduler.
*/
sched_init();
- /*
- * Disable preemption - early bootup scheduling is extremely
- * fragile until we cpu_idle() for the first time.
- */
- preempt_disable();
+
if (WARN(!irqs_disabled(),
"Interrupts were enabled *very* early, fixing it\n"))
local_irq_disable();