patch-2.4.17 linux/arch/mips/kernel/smp.c
Next file: linux/arch/mips64/kernel/smp.c
Previous file: linux/arch/ia64/sn/io/hubspc.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/arch/mips/kernel/smp.c
- Orig date:
Wed Nov 21 18:31:09 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/arch/mips/kernel/smp.c linux/arch/mips/kernel/smp.c
@@ -31,6 +31,7 @@
#include <linux/timex.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
+#include <linux/cache.h>
#include <asm/atomic.h>
#include <asm/processor.h>
@@ -52,7 +53,7 @@
/* Ze Big Kernel Lock! */
-spinlock_t kernel_flag = SPIN_LOCK_UNLOCKED;
+spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
int smp_threads_ready; /* Not used */
int smp_num_cpus;
int global_irq_holder = NO_PROC_ID;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)