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

Next file: linux/arch/sparc/kernel/sparc_ksyms.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.114/linux/arch/sparc/kernel/smp.c linux/arch/sparc/kernel/smp.c
@@ -60,7 +60,9 @@
  * compared to the Alpha and the Intel no?  Most Sparcs have 'swap'
  * instruction which is much better...
  */
-struct klock_info klock_info = { KLOCK_CLEAR, 0 };
+
+/* Kernel spinlock */
+spinlock_t kernel_flag = SPIN_LOCK_UNLOCKED;
 
 volatile unsigned long ipi_count;
 
@@ -238,7 +240,7 @@
 /* Reschedule call back. */
 void smp_reschedule_irq(void)
 {
-	need_resched = 1;
+	current->need_resched = 1;
 }
 
 /* Stopping processors. */

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