diff options
author | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
commit | a02001086bbfb4da35d1228bebc2f1b442db455f (patch) | |
tree | 62ab47936cef06fd08657ca5b6cd1df98c19be57 /arch/powerpc/mm/slice.c | |
parent | eff264efeeb0898408e8c9df72d8a32621035bed (diff) | |
parent | fc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff) |
Merge Linus' tree to be be to apply submitted patches to newer code than
current trivial.git base
Diffstat (limited to 'arch/powerpc/mm/slice.c')
-rw-r--r-- | arch/powerpc/mm/slice.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index b0c75cc15efc..ded0ea1afde4 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c | |||
@@ -30,9 +30,11 @@ | |||
30 | #include <linux/err.h> | 30 | #include <linux/err.h> |
31 | #include <linux/spinlock.h> | 31 | #include <linux/spinlock.h> |
32 | #include <linux/export.h> | 32 | #include <linux/export.h> |
33 | #include <linux/hugetlb.h> | ||
33 | #include <asm/mman.h> | 34 | #include <asm/mman.h> |
34 | #include <asm/mmu.h> | 35 | #include <asm/mmu.h> |
35 | #include <asm/spu.h> | 36 | #include <asm/copro.h> |
37 | #include <asm/hugetlb.h> | ||
36 | 38 | ||
37 | /* some sanity checks */ | 39 | /* some sanity checks */ |
38 | #if (PGTABLE_RANGE >> 43) > SLICE_MASK_SIZE | 40 | #if (PGTABLE_RANGE >> 43) > SLICE_MASK_SIZE |
@@ -232,9 +234,7 @@ static void slice_convert(struct mm_struct *mm, struct slice_mask mask, int psiz | |||
232 | 234 | ||
233 | spin_unlock_irqrestore(&slice_convert_lock, flags); | 235 | spin_unlock_irqrestore(&slice_convert_lock, flags); |
234 | 236 | ||
235 | #ifdef CONFIG_SPU_BASE | 237 | copro_flush_all_slbs(mm); |
236 | spu_flush_all_slbs(mm); | ||
237 | #endif | ||
238 | } | 238 | } |
239 | 239 | ||
240 | /* | 240 | /* |
@@ -671,9 +671,7 @@ void slice_set_psize(struct mm_struct *mm, unsigned long address, | |||
671 | 671 | ||
672 | spin_unlock_irqrestore(&slice_convert_lock, flags); | 672 | spin_unlock_irqrestore(&slice_convert_lock, flags); |
673 | 673 | ||
674 | #ifdef CONFIG_SPU_BASE | 674 | copro_flush_all_slbs(mm); |
675 | spu_flush_all_slbs(mm); | ||
676 | #endif | ||
677 | } | 675 | } |
678 | 676 | ||
679 | void slice_set_range_psize(struct mm_struct *mm, unsigned long start, | 677 | void slice_set_range_psize(struct mm_struct *mm, unsigned long start, |
@@ -684,6 +682,7 @@ void slice_set_range_psize(struct mm_struct *mm, unsigned long start, | |||
684 | slice_convert(mm, mask, psize); | 682 | slice_convert(mm, mask, psize); |
685 | } | 683 | } |
686 | 684 | ||
685 | #ifdef CONFIG_HUGETLB_PAGE | ||
687 | /* | 686 | /* |
688 | * is_hugepage_only_range() is used by generic code to verify whether | 687 | * is_hugepage_only_range() is used by generic code to verify whether |
689 | * a normal mmap mapping (non hugetlbfs) is valid on a given area. | 688 | * a normal mmap mapping (non hugetlbfs) is valid on a given area. |
@@ -728,4 +727,4 @@ int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, | |||
728 | #endif | 727 | #endif |
729 | return !slice_check_fit(mask, available); | 728 | return !slice_check_fit(mask, available); |
730 | } | 729 | } |
731 | 730 | #endif | |