projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7693465
)
sh: Fix up dma_is_consistent().
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 27 Oct 2009 01:41:58 +0000
(10:41 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 27 Oct 2009 01:41:58 +0000
(10:41 +0900)
This fixes up the dma_is_consistent() definition for the various
coherence options.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/dma-mapping.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/include/asm/dma-mapping.h
b/arch/sh/include/asm/dma-mapping.h
index 653076018df08d3b4aead0d755eb8eac4dbf3912..87ced133a363d56172f16fa3f4642b4523d139c8 100644
(file)
--- a/
arch/sh/include/asm/dma-mapping.h
+++ b/
arch/sh/include/asm/dma-mapping.h
@@
-41,7
+41,12
@@
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
+
+#ifdef CONFIG_DMA_COHERENT
#define dma_is_consistent(d, h) (1)
+#else
+#define dma_is_consistent(d, h) (0)
+#endif
static inline int dma_get_cache_alignment(void)
{