patch-2.3.10 linux/arch/sparc/kernel/sun4m_smp.c

Next file: linux/arch/sparc/kernel/sunos_ioctl.c
Previous file: linux/arch/sparc/kernel/sun4d_smp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.9/linux/arch/sparc/kernel/sun4m_smp.c linux/arch/sparc/kernel/sun4m_smp.c
@@ -454,7 +454,7 @@
 		if(current->pid) {
 			update_one_process(current, 1, user, !user, cpu);
 
-			if(--current->counter < 0) {
+			if(--current->counter <= 0) {
 				current->counter = 0;
 				current->need_resched = 1;
 			}

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