VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Valentin Schneider <valentin.schneider@arm.com> 2021-05-12 10:46:36 +0100 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:06:21 +0200 commit: 24c79a7e54ccfa29fb8cbf7ed8d1e48ff1ec6e3d parent: 08d3c4504a7a3a254616f7342320c4e61fca3241
Commit Summary:
sched/core: Initialize the idle task with preemption disabled
Diffstat:
1 file changed, 1 insertion, 5 deletions
diff --git a/init/main.c b/init/main.c
index e9c42a183e33..e6836a9400d5 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();