summaryrefslogtreecommitdiff
path: root/arch/mips/mm/c-r4k.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-07-13 11:48:45 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 18:31:46 (GMT)
commitec74e361f1e71a2498e48b62abdc4bd8d2423354 (patch)
treef442c9b3cf759743d97393288a31b9e481ad1df4 /arch/mips/mm/c-r4k.c
parentcc61c1fede7d02cb8133ab0952ca3f3ba1f7fbb1 (diff)
downloadlinux-ec74e361f1e71a2498e48b62abdc4bd8d2423354.tar.xz
Mark a few variables __read_mostly.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/c-r4k.c')
-rw-r--r--arch/mips/mm/c-r4k.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index 08d7229..d3e352f 100644
--- a/arch/mips/mm/c-r4k.c
+++ b/arch/mips/mm/c-r4k.c
@@ -16,6 +16,7 @@
#include <asm/bcache.h>
#include <asm/bootinfo.h>
+#include <asm/cache.h>
#include <asm/cacheops.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
@@ -28,7 +29,12 @@
#include <asm/war.h>
#include <asm/cacheflush.h> /* for run_uncached() */
-static unsigned long icache_size, dcache_size, scache_size;
+/*
+ * Must die.
+ */
+static unsigned long icache_size __read_mostly;
+static unsigned long dcache_size __read_mostly;
+static unsigned long scache_size __read_mostly;
/*
* Dummy cache handling routines for machines without boardcaches