Skip to contentSkip to conversation

: c-r4k.c 7/7 minor cleanups

PATCH New Juan Quintela 1 participant 1 message Mar 28, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : c-r4k.c 7/7 minor cleanups

Hi
- No need to test for a WAR when we _know_ that the WAR is there.
- Use the pcache function already defined.

Later, Juan.

 build/arch/mips/mm/c-r4k.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
build/arch/mips/mm/c-r4k.c renamed from build/arch/mips/mm/c-r4k.c~c-r4k_minor_cleanups +2 -8
diff -puN build/arch/mips/mm/c-r4k.c~c-r4k_minor_cleanups build/arch/mips/mm/c-r4k.c
@@ -59,17 +59,13 @@ dc_32:
 	return;
 
 dc_32_r4600:
-#ifdef R4600_V1_HIT_DCACHE_WAR
 	{
 	unsigned long flags;
 
 	local_irq_save(flags);
 	__asm__ __volatile__("nop;nop;nop;nop");
-#endif
 	blast_dcache32_page(addr);
-#ifdef R4600_V1_HIT_DCACHE_WAR
 	local_irq_restore(flags);
-#endif
 	return;
 	}
 
@@ -287,10 +283,8 @@ static inline void r4k_flush_pcache_all(
 static void r4k_flush_cache_range(struct mm_struct *mm,
 	unsigned long start, unsigned long end)
 {
-	if (cpu_context(smp_processor_id(), mm) != 0) {
-		r4k_blast_dcache();
-		r4k_blast_icache();
-	}
+	if (cpu_context(smp_processor_id(), mm) != 0)
+		r4k_flush_pcache_all();
 }
 
 /*

_

Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy