summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mem.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-04-29 23:26:22 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-11 21:53:53 +1000
commita3dece6d69b0ad21b64104dff508c67a1a1f14dd (patch)
tree75e42d38f6baafb74291e667fe01435c46a19ce4 /arch/powerpc/mm/mem.c
parentd6a9996e84ac4beb7713e9485f4563e100a9b03e (diff)
downloadop-kernel-dev-a3dece6d69b0ad21b64104dff508c67a1a1f14dd.zip
op-kernel-dev-a3dece6d69b0ad21b64104dff508c67a1a1f14dd.tar.gz
powerpc/radix: Update MMU cache
With radix there is no MMU cache. Hence we don't need to do anything in update_mmu_cache(). Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/mem.c')
-rw-r--r--arch/powerpc/mm/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index ac79dbd..8967788 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -499,6 +499,8 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
* called with either mm->page_table_lock held or ptl lock held
*/
unsigned long access = 0, trap;
+ if (radix_enabled())
+ return;
/* We only want HPTEs for linux PTEs that have _PAGE_ACCESSED set */
if (!pte_young(*ptep) || address >= TASK_SIZE)
OpenPOWER on IntegriCloud