diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2004-02-25 18:07:36 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-25 18:07:36 -0800 |
| commit | 6c34bb1713cc2c73eb5086eac021b8dbde57c4bc (patch) | |
| tree | 0e7c3f73d8cc8b8305e61692aac03ba7ae0c97d1 /include/linux | |
| parent | 56f1be79d5006fc9b04a114c7c17f5c90a1021fe (diff) | |
[PATCH] Always put cache aligned code in own section, even for modules
We put ____cacheline_aligned things in their own section, simply
because we waste less space that way. Otherwise we end up padding
innocent variables to the next cacheline to get the required
alignment.
There's no reason not to do this in modules, too.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cache.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/cache.h b/include/linux/cache.h index 3db3832f35cb..4d767b93738a 100644 --- a/include/linux/cache.h +++ b/include/linux/cache.h @@ -26,13 +26,9 @@ #endif #ifndef __cacheline_aligned -#ifdef MODULE -#define __cacheline_aligned ____cacheline_aligned -#else #define __cacheline_aligned \ __attribute__((__aligned__(SMP_CACHE_BYTES), \ __section__(".data.cacheline_aligned"))) -#endif #endif /* __cacheline_aligned */ #ifndef __cacheline_aligned_in_smp |
