diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-27 09:07:45 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-27 09:07:45 +0100 |
commit | 94c285108e4551157ecc1b8156921712138fa860 (patch) | |
tree | 5eed34d9e097a81542c8c640b19fb264d071518a /arch/sh/mm/init.c | |
parent | sh: Clean up more superfluous symbol exports. (diff) | |
download | linux-94c285108e4551157ecc1b8156921712138fa860.tar.xz linux-94c285108e4551157ecc1b8156921712138fa860.zip |
sh: Bump up dma_ops initialization far earlier in the boot process.
Presently this was tacked on to the dma debug init bits from
fs_initcall(), which is far too late for devices setting up their own
per-device coherent areas.
Throw this in the beginning of mem_init(), as per the x86 iommu
allocation.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r-- | arch/sh/mm/init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index c8af6c5fa586..432acd07e76a 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -15,6 +15,7 @@ #include <linux/pagemap.h> #include <linux/percpu.h> #include <linux/io.h> +#include <linux/dma-mapping.h> #include <asm/mmu_context.h> #include <asm/tlb.h> #include <asm/cacheflush.h> @@ -186,11 +187,21 @@ void __init paging_init(void) set_fixmap_nocache(FIX_UNCACHED, __pa(&__uncached_start)); } +/* + * Early initialization for any I/O MMUs we might have. + */ +static void __init iommu_init(void) +{ + no_iommu_init(); +} + void __init mem_init(void) { int codesize, datasize, initsize; int nid; + iommu_init(); + num_physpages = 0; high_memory = NULL; |