projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d7c44
)
[MIPS] dma_sync_sg_for_cpu is a no-op except for non-coherent R10000s.
author
Ralf Baechle
<ralf@linux-mips.org>
Fri, 2 Mar 2007 11:42:11 +0000
(11:42 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sun, 4 Mar 2007 19:02:42 +0000
(19:02 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/mm/dma-default.c
b/arch/mips/mm/dma-default.c
index a72093ad105f093839d24488a7e24a74f816fec8..f503d02e403bbf78bdb421402ff6a6dfddf6f742 100644
(file)
--- a/
arch/mips/mm/dma-default.c
+++ b/
arch/mips/mm/dma-default.c
@@
-295,7
+295,7
@@
void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems,
/* Make sure that gcc doesn't leave the empty loop body. */
for (i = 0; i < nelems; i++, sg++) {
- if (
!plat_device_is_coherent
(dev))
+ if (
cpu_is_noncoherent_r10000
(dev))
__dma_sync((unsigned long)page_address(sg->page),
sg->length, direction);
plat_unmap_dma_mem(sg->dma_address);