aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/dma-mapping.h7
-rw-r--r--arch/arm/mm/dma-mapping.c15
2 files changed, 0 insertions, 22 deletions
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h
index 4e0285a66ef8..462803f3a6a0 100644
--- a/arch/arm/include/asm/dma-mapping.h
+++ b/arch/arm/include/asm/dma-mapping.h
@@ -190,13 +190,6 @@ extern int arm_dma_mmap(struct device *dev, struct vm_area_struct *vma,
190 unsigned long attrs); 190 unsigned long attrs);
191 191
192/* 192/*
193 * This can be called during early boot to increase the size of the atomic
194 * coherent DMA pool above the default value of 256KiB. It must be called
195 * before postcore_initcall.
196 */
197extern void __init init_dma_coherent_pool_size(unsigned long size);
198
199/*
200 * For SA-1111, IXP425, and ADI systems the dma-mapping functions are "magic" 193 * For SA-1111, IXP425, and ADI systems the dma-mapping functions are "magic"
201 * and utilize bounce buffers as needed to work around limited DMA windows. 194 * and utilize bounce buffers as needed to work around limited DMA windows.
202 * 195 *
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index 24519f4508b9..ada8eb206a90 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -393,21 +393,6 @@ static int __init early_coherent_pool(char *p)
393} 393}
394early_param("coherent_pool", early_coherent_pool); 394early_param("coherent_pool", early_coherent_pool);
395 395
396void __init init_dma_coherent_pool_size(unsigned long size)
397{
398 /*
399 * Catch any attempt to set the pool size too late.
400 */
401 BUG_ON(atomic_pool);
402
403 /*
404 * Set architecture specific coherent pool size only if
405 * it has not been changed by kernel command line parameter.
406 */
407 if (atomic_pool_size == DEFAULT_DMA_COHERENT_POOL_SIZE)
408 atomic_pool_size = size;
409}
410
411/* 396/*
412 * Initialise the coherent pool for atomic allocations. 397 * Initialise the coherent pool for atomic allocations.
413 */ 398 */