patch-2.3.13 linux/include/asm-sparc64/cache.h
Next file: linux/include/asm-sparc64/checksum.h
Previous file: linux/include/asm-sparc64/asm_offsets.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Aug 6 11:58:00 1999
- Orig file:
v2.3.12/linux/include/asm-sparc64/cache.h
- Orig date:
Wed Mar 10 16:53:38 1999
diff -u --recursive --new-file v2.3.12/linux/include/asm-sparc64/cache.h linux/include/asm-sparc64/cache.h
@@ -11,4 +11,12 @@
#define SMP_CACHE_BYTES 64 /* L2 cache line size. */
+#ifdef MODULE
+#define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
+#else
+#define __cacheline_aligned \
+ __attribute__((__aligned__(SMP_CACHE_BYTES), \
+ __section__(".data.cacheline_aligned")))
+#endif
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)