patch-2.4.17 linux/arch/ppc/kernel/smp.c
Next file: linux/arch/s390/kernel/smp.c
Previous file: linux/arch/ppc/kernel/prom.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/ppc/kernel/smp.c
- Orig date:
Mon Nov 26 13:29:17 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/arch/ppc/kernel/smp.c linux/arch/ppc/kernel/smp.c
@@ -23,6 +23,7 @@
#include <linux/unistd.h>
#include <linux/init.h>
#include <linux/spinlock.h>
+#include <linux/cache.h>
#include <asm/ptrace.h>
#include <asm/atomic.h>
@@ -45,7 +46,7 @@
struct klock_info_struct klock_info = { KLOCK_CLEAR, 0 };
atomic_t ipi_recv;
atomic_t ipi_sent;
-spinlock_t kernel_flag __cacheline_aligned = SPIN_LOCK_UNLOCKED;
+spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
unsigned int prof_multiplier[NR_CPUS];
unsigned int prof_counter[NR_CPUS];
cycles_t cacheflush_time;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)