patch-1.3.82 linux/kernel/sched.c
Next file: linux/kernel/softirq.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
-  Lines: 40
 -  Date:
Mon Apr  1 10:32:07 1996
 -  Orig file: 
v1.3.81/linux/kernel/sched.c
 -  Orig date: 
Sun Mar 31 00:13:19 1996
 
diff -u --recursive --new-file v1.3.81/linux/kernel/sched.c linux/kernel/sched.c
@@ -290,15 +290,15 @@
 
 /* check alarm, wake up any interruptible tasks that have got a signal */
 
-	if (intr_count) {
-		printk("Aiee: scheduling in interrupt\n");
-		return;
-	}
+	if (intr_count)
+		goto scheduling_in_interrupt;
+
 	if (bh_active & bh_mask) {
 		intr_count = 1;
 		do_bottom_half();
 		intr_count = 0;
 	}
+
 	run_task_queue(&tq_scheduler);
 
 	need_resched = 0;
@@ -393,6 +393,10 @@
 		if (timeout)
 			del_timer(&timer);
 	}
+	return;
+
+scheduling_in_interrupt:
+	printk("Aiee: scheduling in interrupt\n");
 }
 
 #ifndef __alpha__
@@ -1028,7 +1032,7 @@
 				prof_buffer[ip]++;
 		}
 	}
-	if (tq_timer != &tq_last)
+	if (tq_timer)
 		mark_bh(TQUEUE_BH);
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this