summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/proc-mn103e010/include
diff options
context:
space:
mode:
authorAkira Takeuchi <takeuchi.akr@jp.panasonic.com>2010-10-27 17:28:45 +0100
committerDavid Howells <dhowells@redhat.com>2010-10-27 17:28:45 +0100
commit0bd3eb6ca772775da6125ea5b044d4257473d18d (patch)
treea5aa631714910e2d9a698cd9334bbe1b49e33e2f /arch/mn10300/proc-mn103e010/include
parent9b287bf9924cedaf1accd7293db3627bef7c46e3 (diff)
downloadtalos-obmc-linux-0bd3eb6ca772775da6125ea5b044d4257473d18d.tar.gz
talos-obmc-linux-0bd3eb6ca772775da6125ea5b044d4257473d18d.zip
MN10300: SMP: Differentiate local cache flushing
Differentiate local cache flushing from global cache flushing so that they can be done differently on SMP systems. Rename the cache functions from: mn10300_[id]cache_*() to: mn10300_[id]_localcache_*() and on a UP system, assign the global labels to the local labels. Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com> Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/proc-mn103e010/include')
-rw-r--r--arch/mn10300/proc-mn103e010/include/proc/cache.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mn10300/proc-mn103e010/include/proc/cache.h b/arch/mn10300/proc-mn103e010/include/proc/cache.h
index bdc1f9a59b4c..c1528004163c 100644
--- a/arch/mn10300/proc-mn103e010/include/proc/cache.h
+++ b/arch/mn10300/proc-mn103e010/include/proc/cache.h
@@ -30,4 +30,13 @@
*/
#define MN10300_DCACHE_INV_RANGE_INTR_LOG2_INTERVAL 4
+/*
+ * The size of range at which it becomes more economical to just flush the
+ * whole cache rather than trying to flush the specified range.
+ */
+#define MN10300_DCACHE_FLUSH_BORDER \
+ +(L1_CACHE_NWAYS * L1_CACHE_NENTRIES * L1_CACHE_BYTES)
+#define MN10300_DCACHE_FLUSH_INV_BORDER \
+ +(L1_CACHE_NWAYS * L1_CACHE_NENTRIES * L1_CACHE_BYTES)
+
#endif /* _ASM_PROC_CACHE_H */
OpenPOWER on IntegriCloud