powerpc: Mark some variables in the page fault path __read_mostly
authorAnton Blanchard <anton@samba.org>
Tue, 12 Jan 2010 00:50:14 +0000 (00:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 3 Feb 2010 06:39:48 +0000 (17:39 +1100)
commit5be3492f972b73051ead7ecbac6fb9efd1e8e0ec
treec0c66a38665af53673792246f21198c119e8c7d4
parent61c03ddbdff2e080702521bc1b757854ca58c46a
powerpc: Mark some variables in the page fault path __read_mostly

Using perf to trace L1 dcache misses and dumping data addresses I found a few
variables taking a lot of misses. Since they are almost never written, they
should go into the __read_mostly section.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c
arch/powerpc/xmon/xmon.c