summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/ps3/spu.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-04-29 23:25:37 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-01 18:32:32 +1000
commit72176dd0ad36c6d8e13515d085f7a229a55a2985 (patch)
treefa00f7e4d0a536375411b2d2f54de0421b98bff1 /arch/powerpc/platforms/ps3/spu.c
parente58e87adc8bf92e9c6abb1dc1f4af2500aa07ff3 (diff)
downloadlwn-72176dd0ad36c6d8e13515d085f7a229a55a2985.tar.gz
lwn-72176dd0ad36c6d8e13515d085f7a229a55a2985.zip
powerpc/mm: Use a helper for finding pte bits mapping I/O area
Use a helper instead of open coding with constants. A later patch will drop the WIMG bits and use PowerISA 3.0 defines. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/ps3/spu.c')
-rw-r--r--arch/powerpc/platforms/ps3/spu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c
index 5e8a40f9739f..492b2575e0d2 100644
--- a/arch/powerpc/platforms/ps3/spu.c
+++ b/arch/powerpc/platforms/ps3/spu.c
@@ -216,7 +216,7 @@ static int __init setup_areas(struct spu *spu)
}
spu->local_store = (__force void *)ioremap_prot(spu->local_store_phys,
- LS_SIZE, _PAGE_NO_CACHE);
+ LS_SIZE, pgprot_val(pgprot_noncached_wc(__pgprot(0))));
if (!spu->local_store) {
pr_debug("%s:%d: ioremap local_store failed\n",