diff options
author | Jiri Kosina <jkosina@suse.cz> | 2010-05-03 09:25:35 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-05-03 09:25:35 -0400 |
commit | d6d53cbc6b10d28646fb6184d1069f336ec76dc4 (patch) | |
tree | 1c844b3ce8bd430becbbb74875898b08d9f89bb5 /arch/powerpc/mm/mem.c | |
parent | 0b5adf92ec793c665b0de63ac146d190a921c391 (diff) | |
parent | 6a740aa4f47b9f29bad5292cf51f008f3edad9b1 (diff) |
Merge branch 'hid-suspend' into picolcd
Diffstat (limited to 'arch/powerpc/mm/mem.c')
-rw-r--r-- | arch/powerpc/mm/mem.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 311224cdb7ad..0f594d774bf7 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
23 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
24 | #include <linux/string.h> | 24 | #include <linux/string.h> |
25 | #include <linux/gfp.h> | ||
25 | #include <linux/types.h> | 26 | #include <linux/types.h> |
26 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
27 | #include <linux/stddef.h> | 28 | #include <linux/stddef.h> |
@@ -48,6 +49,7 @@ | |||
48 | #include <asm/sparsemem.h> | 49 | #include <asm/sparsemem.h> |
49 | #include <asm/vdso.h> | 50 | #include <asm/vdso.h> |
50 | #include <asm/fixmap.h> | 51 | #include <asm/fixmap.h> |
52 | #include <asm/swiotlb.h> | ||
51 | 53 | ||
52 | #include "mmu_decl.h" | 54 | #include "mmu_decl.h" |
53 | 55 | ||
@@ -320,6 +322,11 @@ void __init mem_init(void) | |||
320 | struct page *page; | 322 | struct page *page; |
321 | unsigned long reservedpages = 0, codesize, initsize, datasize, bsssize; | 323 | unsigned long reservedpages = 0, codesize, initsize, datasize, bsssize; |
322 | 324 | ||
325 | #ifdef CONFIG_SWIOTLB | ||
326 | if (ppc_swiotlb_enable) | ||
327 | swiotlb_init(1); | ||
328 | #endif | ||
329 | |||
323 | num_physpages = lmb.memory.size >> PAGE_SHIFT; | 330 | num_physpages = lmb.memory.size >> PAGE_SHIFT; |
324 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); | 331 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); |
325 | 332 | ||