From e6725248fc350629e09bb0e88f0926eaf9181918 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 14 Apr 2009 15:22:15 +0900 Subject: [PATCH] --- yaml --- r: 143273 b: refs/heads/master c: 7b41f5688c1e03c41c772cd1766d6d80189380dd h: refs/heads/master i: 143271: 0dd9d7cecd9547696a1ba41773f167a8dff7f4ef v: v3 --- [refs] | 2 +- trunk/arch/sh/mm/consistent.c | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index ab4001b48487..5a6dd8efcef4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0ee50254dfe0c96f9eef4fc9fdf47a18d6a12df3 +refs/heads/master: 7b41f5688c1e03c41c772cd1766d6d80189380dd diff --git a/trunk/arch/sh/mm/consistent.c b/trunk/arch/sh/mm/consistent.c index 8c9ee855328a..e098ec158ddb 100644 --- a/trunk/arch/sh/mm/consistent.c +++ b/trunk/arch/sh/mm/consistent.c @@ -10,12 +10,22 @@ * for more details. */ #include +#include #include #include #include +#include #include #include -#include + +#define PREALLOC_DMA_DEBUG_ENTRIES 4096 + +static int __init dma_init(void) +{ + dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); + return 0; +} +fs_initcall(dma_init); void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp)