diff options
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 4920a206dce9..16d373d587c4 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/dma-contiguous.h> | 21 | #include <linux/dma-contiguous.h> |
22 | #include <linux/sizes.h> | 22 | #include <linux/sizes.h> |
23 | #include <linux/stop_machine.h> | 23 | #include <linux/stop_machine.h> |
24 | #include <linux/swiotlb.h> | ||
24 | 25 | ||
25 | #include <asm/cp15.h> | 26 | #include <asm/cp15.h> |
26 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
@@ -463,6 +464,10 @@ static void __init free_highpages(void) | |||
463 | */ | 464 | */ |
464 | void __init mem_init(void) | 465 | void __init mem_init(void) |
465 | { | 466 | { |
467 | #ifdef CONFIG_ARM_LPAE | ||
468 | swiotlb_init(1); | ||
469 | #endif | ||
470 | |||
466 | set_max_mapnr(pfn_to_page(max_pfn) - mem_map); | 471 | set_max_mapnr(pfn_to_page(max_pfn) - mem_map); |
467 | 472 | ||
468 | /* this will put all unused low memory onto the freelists */ | 473 | /* this will put all unused low memory onto the freelists */ |