Title: [7978] trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c: nompu: dont bother with dma hole when there is no reserved memory as the following hole (to the async bank) can cover this too
- Revision
- 7978
- Author
- vapier
- Date
- 2009-12-12 09:27:40 -0500 (Sat, 12 Dec 2009)
Log Message
nompu: dont bother with dma hole when there is no reserved memory as the following hole (to the async bank) can cover this too
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c (7977 => 7978)
--- trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c 2009-12-12 14:25:06 UTC (rev 7977)
+++ trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c 2009-12-12 14:27:40 UTC (rev 7978)
@@ -147,12 +147,13 @@
/* Normal RAM, including MTD FS. */
icplb_bounds[i_i].eaddr = uncached_end;
icplb_bounds[i_i++].data = ""
- /* DMA uncached region. */
- if (DMA_UNCACHED_REGION) {
- icplb_bounds[i_i].eaddr = _ramend;
- icplb_bounds[i_i++].data = ""
- }
if (_ramend != physical_mem_end) {
+ /* DMA uncached region. */
+ if (DMA_UNCACHED_REGION) {
+ /* Normally this hole is caught by the async below. */
+ icplb_bounds[i_i].eaddr = _ramend;
+ icplb_bounds[i_i++].data = ""
+ }
/* Reserved memory. */
icplb_bounds[i_i].eaddr = physical_mem_end;
icplb_bounds[i_i++].data = "" ?
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits