summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/kernel/traps.c
diff options
context:
space:
mode:
authorDavid Howells2010-10-27 18:28:46 +0200
committerDavid Howells2010-10-27 18:28:46 +0200
commitb478491f2628114b2eae76587f22ce3789b66012 (patch)
tree038580a05fa1a3c8c9cbee0fa8743af2bba650b9 /arch/mn10300/kernel/traps.c
parentMN10300: AM34: Add cacheflushing by using the AM34 purge registers (diff)
downloadkernel-qcow2-linux-b478491f2628114b2eae76587f22ce3789b66012.tar.gz
kernel-qcow2-linux-b478491f2628114b2eae76587f22ce3789b66012.tar.xz
kernel-qcow2-linux-b478491f2628114b2eae76587f22ce3789b66012.zip
MN10300: Allow some cacheflushes to be avoided if cache snooping is available
The AM34 core is able to do cache snooping, and so can skip some of the cache flushing. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/kernel/traps.c')
-rw-r--r--arch/mn10300/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c
index a64604b512d5..c7257a1304a9 100644
--- a/arch/mn10300/kernel/traps.c
+++ b/arch/mn10300/kernel/traps.c
@@ -533,8 +533,10 @@ void __init set_intr_stub(enum exception_code code, void *handler)
vector[6] = 0xcb;
vector[7] = 0xcb;
+#ifndef CONFIG_MN10300_CACHE_SNOOP
mn10300_dcache_flush_inv();
mn10300_icache_inv();
+#endif
}
/*