diff options
author | Christoph Hellwig <hch@lst.de> | 2018-04-16 18:22:28 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-08 14:02:42 +0300 |
commit | 15b28bbcd567a9199481ecfef39702b258f9baff (patch) | |
tree | db5428916f2f231b602bad88b202ffc7540afd16 /arch/sh/mm | |
parent | 325ef1857fff8b2049322921e19421b6c5ad74e5 (diff) | |
download | linux-15b28bbcd567a9199481ecfef39702b258f9baff.tar.xz |
dma-debug: move initialization to common code
Most mainstream architectures are using 65536 entries, so lets stick to
that. If someone is really desperate to override it that can still be
done through <asm/dma-mapping.h>, but I'd rather see a really good
rationale for that.
dma_debug_init is now called as a core_initcall, which for many
architectures means much earlier, and provides dma-debug functionality
earlier in the boot process. This should be safe as it only relies
on the memory allocator already being available.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/consistent.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/sh/mm/consistent.c b/arch/sh/mm/consistent.c index 8ce98691d822..35ea3099a3b6 100644 --- a/arch/sh/mm/consistent.c +++ b/arch/sh/mm/consistent.c @@ -20,18 +20,9 @@ #include <asm/cacheflush.h> #include <asm/addrspace.h> -#define PREALLOC_DMA_DEBUG_ENTRIES 4096 - const struct dma_map_ops *dma_ops; EXPORT_SYMBOL(dma_ops); -static int __init dma_init(void) -{ - dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); - return 0; -} -fs_initcall(dma_init); - void *dma_generic_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) |