patch-2.4.10 linux/arch/sh/kernel/pci-dma.c
Next file: linux/arch/sh/kernel/pci-sh7751.c
Previous file: linux/arch/sh/kernel/pci-dc.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sat Sep 8 12:29:09 2001
- Orig file:
v2.4.9/linux/arch/sh/kernel/pci-dma.c
- Orig date:
Tue Jul 3 17:08:18 2001
diff -u --recursive --new-file v2.4.9/linux/arch/sh/kernel/pci-dma.c linux/arch/sh/kernel/pci-dma.c
@@ -29,7 +29,7 @@
*dma_handle = virt_to_bus(ret);
}
/* We must flush the cache before we pass it on to the device */
- flush_cache_all();
+ dma_cache_wback_inv(ret, size);
return P2SEGADDR(ret);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)