From a5cf4a76af143886b58586ffcecd5fe93029db96 Mon Sep 17 00:00:00 2001 From: Steve Muckle Date: Sun, 23 Aug 2009 23:58:47 -0700 Subject: [PATCH] [ARM] add support for CPUs that do speculative fetches Some CPUs perform speculative fetches. This may occur while a region of memory is being written via DMA, so that region must be invalidated when it is brought under CPU control after the DMA transaction finishes, assuming the DMA was either bidirectional or from the device. Signed-off-by: Dima Zavin (cherry picked from commit fe79fc554afbfaa2652542129fb7380f4f7c4934) Conflicts: arch/arm/include/asm/dma-mapping.h Change-Id: Id2a66fe567066a9301859b897d540885667253e6 --- arch/arm/include/asm/memory.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index fcb575747e5..17b7b317534 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -280,6 +280,13 @@ static inline __deprecated void *bus_to_virt(unsigned long x) #define arch_is_coherent() 0 #endif +/* + * Set if the architecture speculatively fetches data into cache. + */ +#ifndef arch_has_speculative_dfetch +#define arch_has_speculative_dfetch() 0 +#endif + #endif #include