diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-11-20 16:45:58 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:37 -0500 |
commit | ac41f9c46282926c92b8bd0dcb1aca29a97d13ab (patch) | |
tree | 47869876a0ca0f53c5f1c15d608b322d3cc63df0 /arch | |
parent | 85546d7ec827b7b0ff822cc86644c1b081142e53 (diff) |
MIPS: Remove a temporary hack for debugging cache flushes in SMTC configuration
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: aaro.koskinen@iki.fi
Cc: david.daney@cavium.com
Cc: linux-kernel@vger.kernel.org
Cc: markos.chandras@imgtec.com
Cc: dengcheng.zhu@imgtec.com
Cc: chenhc@lemote.com
Cc: akpm@linux-foundation.org
Patchwork: https://patchwork.linux-mips.org/patch/8535/
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/r4kcache.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/arch/mips/include/asm/r4kcache.h b/arch/mips/include/asm/r4kcache.h index 4520adc8699b..617d2b8211f5 100644 --- a/arch/mips/include/asm/r4kcache.h +++ b/arch/mips/include/asm/r4kcache.h | |||
@@ -47,79 +47,20 @@ extern void (*r4k_blast_icache)(void); | |||
47 | 47 | ||
48 | #ifdef CONFIG_MIPS_MT | 48 | #ifdef CONFIG_MIPS_MT |
49 | 49 | ||
50 | /* | ||
51 | * Optionally force single-threaded execution during I-cache flushes. | ||
52 | */ | ||
53 | #define PROTECT_CACHE_FLUSHES 1 | ||
54 | |||
55 | #ifdef PROTECT_CACHE_FLUSHES | ||
56 | |||
57 | extern int mt_protiflush; | ||
58 | extern int mt_protdflush; | ||
59 | extern void mt_cflush_lockdown(void); | ||
60 | extern void mt_cflush_release(void); | ||
61 | |||
62 | #define BEGIN_MT_IPROT \ | ||
63 | unsigned long flags = 0; \ | ||
64 | unsigned long mtflags = 0; \ | ||
65 | if(mt_protiflush) { \ | ||
66 | local_irq_save(flags); \ | ||
67 | ehb(); \ | ||
68 | mtflags = dvpe(); \ | ||
69 | mt_cflush_lockdown(); \ | ||
70 | } | ||
71 | |||
72 | #define END_MT_IPROT \ | ||
73 | if(mt_protiflush) { \ | ||
74 | mt_cflush_release(); \ | ||
75 | evpe(mtflags); \ | ||
76 | local_irq_restore(flags); \ | ||
77 | } | ||
78 | |||
79 | #define BEGIN_MT_DPROT \ | ||
80 | unsigned long flags = 0; \ | ||
81 | unsigned long mtflags = 0; \ | ||
82 | if(mt_protdflush) { \ | ||
83 | local_irq_save(flags); \ | ||
84 | ehb(); \ | ||
85 | mtflags = dvpe(); \ | ||
86 | mt_cflush_lockdown(); \ | ||
87 | } | ||
88 | |||
89 | #define END_MT_DPROT \ | ||
90 | if(mt_protdflush) { \ | ||
91 | mt_cflush_release(); \ | ||
92 | evpe(mtflags); \ | ||
93 | local_irq_restore(flags); \ | ||
94 | } | ||
95 | |||
96 | #else | ||
97 | |||
98 | #define BEGIN_MT_IPROT | ||
99 | #define BEGIN_MT_DPROT | ||
100 | #define END_MT_IPROT | ||
101 | #define END_MT_DPROT | ||
102 | |||
103 | #endif /* PROTECT_CACHE_FLUSHES */ | ||
104 | |||
105 | #define __iflush_prologue \ | 50 | #define __iflush_prologue \ |
106 | unsigned long redundance; \ | 51 | unsigned long redundance; \ |
107 | extern int mt_n_iflushes; \ | 52 | extern int mt_n_iflushes; \ |
108 | BEGIN_MT_IPROT \ | ||
109 | for (redundance = 0; redundance < mt_n_iflushes; redundance++) { | 53 | for (redundance = 0; redundance < mt_n_iflushes; redundance++) { |
110 | 54 | ||
111 | #define __iflush_epilogue \ | 55 | #define __iflush_epilogue \ |
112 | END_MT_IPROT \ | ||
113 | } | 56 | } |
114 | 57 | ||
115 | #define __dflush_prologue \ | 58 | #define __dflush_prologue \ |
116 | unsigned long redundance; \ | 59 | unsigned long redundance; \ |
117 | extern int mt_n_dflushes; \ | 60 | extern int mt_n_dflushes; \ |
118 | BEGIN_MT_DPROT \ | ||
119 | for (redundance = 0; redundance < mt_n_dflushes; redundance++) { | 61 | for (redundance = 0; redundance < mt_n_dflushes; redundance++) { |
120 | 62 | ||
121 | #define __dflush_epilogue \ | 63 | #define __dflush_epilogue \ |
122 | END_MT_DPROT \ | ||
123 | } | 64 | } |
124 | 65 | ||
125 | #define __inv_dflush_prologue __dflush_prologue | 66 | #define __inv_dflush_prologue __dflush_prologue |