summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2010-01-12 01:50:14 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-02-03 07:39:48 +0100
commit5be3492f972b73051ead7ecbac6fb9efd1e8e0ec (patch)
treec0c66a38665af53673792246f21198c119e8c7d4 /arch/powerpc/xmon
parentpowerpc: Replace per_cpu(, smp_processor_id()) with __get_cpu_var() (diff)
downloadlinux-5be3492f972b73051ead7ecbac6fb9efd1e8e0ec.tar.xz
linux-5be3492f972b73051ead7ecbac6fb9efd1e8e0ec.zip
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>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/xmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 4e6152c13764..8bad7d5f32af 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -61,7 +61,7 @@ static int xmon_owner;
static int xmon_gate;
#endif /* CONFIG_SMP */
-static unsigned long in_xmon = 0;
+static unsigned long in_xmon __read_mostly = 0;
static unsigned long adrs;
static int size = 1;