patch-2.4.17 linux/arch/mips64/kernel/smp.c
Next file: linux/arch/ppc/kernel/i8259.c
Previous file: linux/arch/mips/kernel/smp.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/mips64/kernel/smp.c
- Orig date:
Wed Jul 4 18:50:39 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/arch/mips64/kernel/smp.c linux/arch/mips64/kernel/smp.c
@@ -5,6 +5,7 @@
#include <linux/time.h>
#include <linux/timex.h>
#include <linux/sched.h>
+#include <linux/cache.h>
#include <asm/atomic.h>
#include <asm/processor.h>
@@ -52,7 +53,7 @@
#endif /* CONFIG_SGI_IP27 */
/* The '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 */
atomic_t smp_commenced = ATOMIC_INIT(0);
struct cpuinfo_mips cpu_data[NR_CPUS];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)