MIPS: Implement __read_mostly
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 14 Oct 2010 19:36:49 +0000 (12:36 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jan 2011 18:30:28 +0000 (19:30 +0100)
commit1befdd5536e1500371f7f884d0f0ae528a519333
tree0c189a3c6686381f1393f9ea5cb161c36e08738f
parentf5b35d0b16a08e6c1e7c8a41fa87ad10cf9aefa4
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>
arch/mips/include/asm/cache.h
arch/mips/kernel/setup.c