patch-2.1.51 linux/arch/sparc/kernel/smp.c

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

diff -u --recursive --new-file v2.1.50/linux/arch/sparc/kernel/smp.c linux/arch/sparc/kernel/smp.c
@@ -87,7 +87,7 @@
 #define SMP_PRINTK(x)
 #endif
 
-static volatile int smp_commenced = 0;
+volatile int smp_commenced = 0;
 
 static char smp_buf[512];
 
@@ -558,7 +558,7 @@
 /* Reschedule call back. */
 void smp_reschedule_irq(void)
 {
-	need_resched=1;
+	resched_force();
 }
 
 /* Running cross calls. */
@@ -623,7 +623,7 @@
 
 			if(--current->counter < 0) {
 				current->counter = 0;
-				need_resched = 1;
+				resched_force();
 			}
 
 			spin_lock(&ticker_lock);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov