aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/cache.h
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-11-21 20:41:00 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-11-21 20:41:00 +0000
commitc81cf54c19d633c7840e626b1c0ef91e60935795 (patch)
tree3edb2f13409863f3e16fffa3600534a1fbf5faea /xen/include/xen/cache.h
parent9b7223024d973757421cd6b037f47f64bc41e59d (diff)
downloadxen-c81cf54c19d633c7840e626b1c0ef91e60935795.tar.gz
xen-c81cf54c19d633c7840e626b1c0ef91e60935795.tar.bz2
xen-c81cf54c19d633c7840e626b1c0ef91e60935795.zip
bitkeeper revision 1.1159.183.1 (41a0fd5c_SO-Z8P4u52CN53Q0eDzqg)
Clean up cacheline-alignment attribute usage. Also add an extra byte to the TSS I/O bitmap as required by the arch manual.
Diffstat (limited to 'xen/include/xen/cache.h')
-rw-r--r--xen/include/xen/cache.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/xen/include/xen/cache.h b/xen/include/xen/cache.h
index 320867f60d..f972dc30d4 100644
--- a/xen/include/xen/cache.h
+++ b/xen/include/xen/cache.h
@@ -12,26 +12,8 @@
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif
-#ifndef ____cacheline_aligned
-#define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
-#endif
-
-#ifndef ____cacheline_aligned_in_smp
-#ifdef CONFIG_SMP
-#define ____cacheline_aligned_in_smp ____cacheline_aligned
-#else
-#define ____cacheline_aligned_in_smp
-#endif /* CONFIG_SMP */
-#endif
-
#ifndef __cacheline_aligned
-#ifdef MODULE
-#define __cacheline_aligned ____cacheline_aligned
-#else
-#define __cacheline_aligned \
- __attribute__((__aligned__(SMP_CACHE_BYTES), \
- __section__(".data.cacheline_aligned")))
+#define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
#endif
-#endif /* __cacheline_aligned */
#endif /* __LINUX_CACHE_H */