diff options
author | David Daney <ddaney@caviumnetworks.com> | 2010-10-14 12:36:49 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-01-18 19:30:28 +0100 |
commit | 1befdd5536e1500371f7f884d0f0ae528a519333 (patch) | |
tree | 0c189a3c6686381f1393f9ea5cb161c36e08738f /arch/mips/include/asm | |
parent | f5b35d0b16a08e6c1e7c8a41fa87ad10cf9aefa4 (diff) | |
download | kernel_samsung_aries-1befdd5536e1500371f7f884d0f0ae528a519333.zip kernel_samsung_aries-1befdd5536e1500371f7f884d0f0ae528a519333.tar.gz kernel_samsung_aries-1befdd5536e1500371f7f884d0f0ae528a519333.tar.bz2 |
MIPS: Implement __read_mostly
Just do what everyone else is doing by placing __read_mostly things in
the .data.read_mostly section.
mips_io_port_base can not be read-only (const) and writable
(__read_mostly) at the same time. One of them has to go, so I chose
to eliminate the __read_mostly. It will still get stuck in a portion
of memory that is not adjacent to things that are written, and thus
not be on a dirty cache line, for whatever that is worth.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1702/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cache.h b/arch/mips/include/asm/cache.h index 37f175c..650ac9b 100644 --- a/arch/mips/include/asm/cache.h +++ b/arch/mips/include/asm/cache.h @@ -17,4 +17,6 @@ #define SMP_CACHE_SHIFT L1_CACHE_SHIFT #define SMP_CACHE_BYTES L1_CACHE_BYTES +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) + #endif /* _ASM_CACHE_H */ |