projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cac6787
)
x86: adjust dma_free_coherent for i386
author
Glauber Costa
<gcosta@redhat.com>
Tue, 8 Apr 2008 16:20:59 +0000
(13:20 -0300)
committer
Ingo Molnar
<mingo@elte.hu>
Sat, 19 Apr 2008 17:19:58 +0000
(19:19 +0200)
We call unmap_single, if available.
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma_32.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/pci-dma_32.c
b/arch/x86/kernel/pci-dma_32.c
index 9199bccb9214c959196128b19de6495594cd7814..5ae3470113c64f507ed5037d12e537c8bb349d04 100644
(file)
--- a/
arch/x86/kernel/pci-dma_32.c
+++ b/
arch/x86/kernel/pci-dma_32.c
@@
-80,6
+80,8
@@
void dma_free_coherent(struct device *dev, size_t size,
WARN_ON(irqs_disabled()); /* for portability */
if (dma_release_coherent(dev, order, vaddr))
return;
+ if (dma_ops->unmap_single)
+ dma_ops->unmap_single(dev, dma_handle, size, 0);
free_pages((unsigned long)vaddr, order);
}
EXPORT_SYMBOL(dma_free_coherent);