patch-1.3.77 linux/kernel/sched.c

Next file: linux/mm/filemap.c
Previous file: linux/kernel/fork.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.76/linux/kernel/sched.c linux/kernel/sched.c
@@ -886,7 +886,7 @@
 	unsigned long it_virt = p->it_virt_value;
 
 	if (it_virt) {
-		if (it_virt < ticks) {
+		if (it_virt <= ticks) {
 			it_virt = ticks + p->it_virt_incr;
 			send_sig(SIGVTALRM, p, 1);
 		}
@@ -899,7 +899,7 @@
 	unsigned long it_prof = p->it_prof_value;
 
 	if (it_prof) {
-		if (it_prof < ticks) {
+		if (it_prof <= ticks) {
 			it_prof = ticks + p->it_prof_incr;
 			send_sig(SIGPROF, p, 1);
 		}

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