summaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/cache.h
diff options
context:
space:
mode:
authorVineet Gupta2013-09-05 09:47:49 +0200
committerVineet Gupta2013-11-06 06:11:37 +0100
commit63d2dfdbf4b12a6993adf5005fd308d611d453d6 (patch)
treeb4878a30a70b513ff081f2a4ec0f61a683d0e029 /arch/arc/include/asm/cache.h
parentARC: cacheflush refactor #1: push aux reg ascertaining into leaf routine (diff)
downloadkernel-qcow2-linux-63d2dfdbf4b12a6993adf5005fd308d611d453d6.tar.gz
kernel-qcow2-linux-63d2dfdbf4b12a6993adf5005fd308d611d453d6.tar.xz
kernel-qcow2-linux-63d2dfdbf4b12a6993adf5005fd308d611d453d6.zip
ARC: cacheflush refactor #2: I and D caches lines to have same size
Having them be different seems an obscure configuration. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/cache.h')
-rw-r--r--arch/arc/include/asm/cache.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h
index e4abdaac6f9f..2fd3162ec4df 100644
--- a/arch/arc/include/asm/cache.h
+++ b/arch/arc/include/asm/cache.h
@@ -17,13 +17,7 @@
#endif
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
-
-/* For a rare case where customers have differently config I/D */
-#define ARC_ICACHE_LINE_LEN L1_CACHE_BYTES
-#define ARC_DCACHE_LINE_LEN L1_CACHE_BYTES
-
-#define ICACHE_LINE_MASK (~(ARC_ICACHE_LINE_LEN - 1))
-#define DCACHE_LINE_MASK (~(ARC_DCACHE_LINE_LEN - 1))
+#define CACHE_LINE_MASK (~(L1_CACHE_BYTES - 1))
/*
* ARC700 doesn't cache any access in top 256M.