patch-2.3.51 linux/kernel/fork.c
Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
Fri Mar 10 15:31:29 2000
-  Orig file: 
v2.3.50/linux/kernel/fork.c
-  Orig date: 
Sun Feb 13 19:29:04 2000
diff -u --recursive --new-file v2.3.50/linux/kernel/fork.c linux/kernel/fork.c
@@ -713,8 +713,10 @@
 	 * more scheduling fairness. This is only important in the first
 	 * timeslice, on the long run the scheduling behaviour is unchanged.
 	 */
+	p->counter = (current->counter + 1) >> 1;
 	current->counter >>= 1;
-	p->counter = current->counter;
+	if (!current->counter)
+		current->need_resched = 1;
 
 	/*
 	 * Ok, add it to the run-queues and make it
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)