Skip to contentSkip to conversation

ARM: mm: Fix dma_contiguous_reserve comment

PATCH New George G. Davis 2 participants 2 messages Jan 9, 2015 – Jan 14, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mm: Fix dma_contiguous_reserve comment

DMA contiguous allocations have been able to use highmem since commit "95b0e65 ARM: mm: don't limit default CMA region only to low memory" but a comment still notes the earlier "low memory" limitation. Update the comment to remove the low memory limitation and fix the s/contigouos/contiguous/ typo while we're at it.

---
 arch/arm/mm/init.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/arm/mm/init.c +1 -4
index 98ad9c7..d538dc7 100644
@@ -319,10 +319,7 @@ void __init arm_memblock_init(const struct machine_desc *mdesc)
 
 	early_init_fdt_scan_reserved_mem();
 
-	/*
-	 * reserve memory for DMA contigouos allocations,
-	 * must come from DMA area inside low memory
-	 */
+	/* reserve memory for DMA contiguous allocations */
 	dma_contiguous_reserve(arm_dma_limit);
 
 	arm_memblock_steal_permitted = false;
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 ARM: mm: Fix dma_contiguous_reserve comment

Hello,

Quoted 7 lines · George G. Davis

DMA contiguous allocations have been able to use highmem since commit "95b0e65 ARM: mm: don't limit default CMA region only to low memory" but a comment still notes the earlier "low memory" limitation. Update the comment to remove the low memory limitation and fix the s/contigouos/contiguous/ typo while we're at it.

Quoted 10 lines
---
  arch/arm/mm/init.c | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)
arch/arm/mm/init.c +0 -0
index 98ad9c7..d538dc7 100644
@@ -319,10 +319,7 @@ void __init arm_memblock_init(const struct machine_desc *mdesc)
 

arch/arm/mm/init.c void __init arm_memblock_init(const struct machine_desc *mdesc) · line 325

Quoted 10 lines
arch/arm/mm/init.c +1 -4
  	early_init_fdt_scan_reserved_mem();
 
-	/*
-	 * reserve memory for DMA contigouos allocations,
-	 * must come from DMA area inside low memory
-	 */
+	/* reserve memory for DMA contiguous allocations */
  	dma_contiguous_reserve(arm_dma_limit);
 
  	arm_memblock_steal_permitted = false;

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland