aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/cache.c')
-rw-r--r--arch/sh/mm/cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c
index 35c37b7f717a..4aa926054531 100644
--- a/arch/sh/mm/cache.c
+++ b/arch/sh/mm/cache.c
@@ -164,11 +164,17 @@ void flush_cache_all(void)
164 164
165void flush_cache_mm(struct mm_struct *mm) 165void flush_cache_mm(struct mm_struct *mm)
166{ 166{
167 if (boot_cpu_data.dcache.n_aliases == 0)
168 return;
169
167 cacheop_on_each_cpu(local_flush_cache_mm, mm, 1); 170 cacheop_on_each_cpu(local_flush_cache_mm, mm, 1);
168} 171}
169 172
170void flush_cache_dup_mm(struct mm_struct *mm) 173void flush_cache_dup_mm(struct mm_struct *mm)
171{ 174{
175 if (boot_cpu_data.dcache.n_aliases == 0)
176 return;
177
172 cacheop_on_each_cpu(local_flush_cache_dup_mm, mm, 1); 178 cacheop_on_each_cpu(local_flush_cache_dup_mm, mm, 1);
173} 179}
174 180