[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 <dima@android.com>
(cherry picked from commit fe79fc554afbfaa2652542129fb7380f4f7c4934)

Conflicts:

	arch/arm/include/asm/dma-mapping.h

Change-Id: Id2a66fe567066a9301859b897d540885667253e6
This commit is contained in:
Steve Muckle
2009-08-23 23:58:47 -07:00
committed by Stephen Boyd
parent 94782bc2a8
commit a5cf4a76af

View File

@@ -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 <asm-generic/memory_model.h>