aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/slice.c
diff options
context:
space:
mode:
authorIan Munsie <imunsie@au1.ibm.com>2014-10-08 04:54:52 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-10-08 05:15:37 -0400
commitbe3ebfe8215392b714349554c5138b8b6592fe20 (patch)
tree7030d8385c98edb8fa926ab9686b5ece3506958f /arch/powerpc/mm/slice.c
parent73d16a6e0e51990cbe13f8d8f43bd5329bbab30a (diff)
powerpc/cell: Make spu_flush_all_slbs() generic
This moves spu_flush_all_slbs() into a generic call copro_flush_all_slbs(). This will be useful when we add cxl which also needs a similar SLB flush call. Signed-off-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/slice.c')
-rw-r--r--arch/powerpc/mm/slice.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c
index 86f6a755af0b..8d7bda94d196 100644
--- a/arch/powerpc/mm/slice.c
+++ b/arch/powerpc/mm/slice.c
@@ -33,7 +33,7 @@
33#include <linux/hugetlb.h> 33#include <linux/hugetlb.h>
34#include <asm/mman.h> 34#include <asm/mman.h>
35#include <asm/mmu.h> 35#include <asm/mmu.h>
36#include <asm/spu.h> 36#include <asm/copro.h>
37#include <asm/hugetlb.h> 37#include <asm/hugetlb.h>
38 38
39/* some sanity checks */ 39/* some sanity checks */
@@ -234,9 +234,7 @@ static void slice_convert(struct mm_struct *mm, struct slice_mask mask, int psiz
234 234
235 spin_unlock_irqrestore(&slice_convert_lock, flags); 235 spin_unlock_irqrestore(&slice_convert_lock, flags);
236 236
237#ifdef CONFIG_SPU_BASE 237 copro_flush_all_slbs(mm);
238 spu_flush_all_slbs(mm);
239#endif
240} 238}
241 239
242/* 240/*
@@ -673,9 +671,7 @@ void slice_set_psize(struct mm_struct *mm, unsigned long address,
673 671
674 spin_unlock_irqrestore(&slice_convert_lock, flags); 672 spin_unlock_irqrestore(&slice_convert_lock, flags);
675 673
676#ifdef CONFIG_SPU_BASE 674 copro_flush_all_slbs(mm);
677 spu_flush_all_slbs(mm);
678#endif
679} 675}
680 676
681void slice_set_range_psize(struct mm_struct *mm, unsigned long start, 677void slice_set_range_psize(struct mm_struct *mm, unsigned long start,