Commit 33202349 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Remove useless S-cache flushes.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 526af35e
...@@ -468,8 +468,6 @@ static inline void local_r4k_flush_cache_page(void *args) ...@@ -468,8 +468,6 @@ static inline void local_r4k_flush_cache_page(void *args)
if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) { if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) {
r4k_blast_dcache_page(addr); r4k_blast_dcache_page(addr);
if (exec && !cpu_icache_snoops_remote_store)
r4k_blast_scache_page(addr);
} }
if (exec) { if (exec) {
if (vaddr && cpu_has_vtag_icache && mm == current->active_mm) { if (vaddr && cpu_has_vtag_icache && mm == current->active_mm) {
...@@ -533,13 +531,6 @@ static inline void local_r4k_flush_icache_range(void *args) ...@@ -533,13 +531,6 @@ static inline void local_r4k_flush_icache_range(void *args)
R4600_HIT_CACHEOP_WAR_IMPL; R4600_HIT_CACHEOP_WAR_IMPL;
protected_blast_dcache_range(start, end); protected_blast_dcache_range(start, end);
} }
if (!cpu_icache_snoops_remote_store && scache_size) {
if (end - start > scache_size)
r4k_blast_scache();
else
protected_blast_scache_range(start, end);
}
} }
if (end - start > icache_size) if (end - start > icache_size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment