aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc/kernel/ioport.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c
index b81748119cf7..815003b5fab6 100644
--- a/arch/sparc/kernel/ioport.c
+++ b/arch/sparc/kernel/ioport.c
@@ -50,10 +50,14 @@
50#include <asm/io-unit.h> 50#include <asm/io-unit.h>
51#include <asm/leon.h> 51#include <asm/leon.h>
52 52
53#ifdef CONFIG_SPARC_LEON 53#ifndef CONFIG_SPARC_LEON
54#define mmu_inval_dma_area(p, l) leon_flush_dcache_all()
55#else
56#define mmu_inval_dma_area(p, l) /* Anton pulled it out for 2.4.0-xx */ 54#define mmu_inval_dma_area(p, l) /* Anton pulled it out for 2.4.0-xx */
55#else
56static inline void mmu_inval_dma_area(unsigned long va, unsigned long len)
57{
58 if (!sparc_leon3_snooping_enabled())
59 leon_flush_dcache_all();
60}
57#endif 61#endif
58 62
59static struct resource *_sparc_find_resource(struct resource *r, 63static struct resource *_sparc_find_resource(struct resource *r,