patch-2.3.99-pre3 linux/kernel/sched.c

Next file: linux/kernel/signal.c
Previous file: linux/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/kernel/sched.c linux/kernel/sched.c
@@ -618,6 +618,11 @@
 	goto handle_softirq_back;
 
 handle_tq_scheduler:
+	/*
+	 * do not run the task queue with disabled interrupts,
+	 * cli() wouldn't work on SMP
+	 */
+	sti();
 	run_task_queue(&tq_scheduler);
 	goto tq_scheduler_back;
 
@@ -630,7 +635,7 @@
 
 scheduling_in_interrupt:
 	printk("Scheduling in interrupt\n");
-	*(int *)0 = 0;
+	BUG();
 	return;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)