Re: [PATCH V2 56/68] powerpc/radix: update mmu cache

From
Balbir Singh <bsingharora@gmail.com>
Date
2016-04-26 06:23:27
Reply to
Aneesh Kumar K.V, 2016-04-09

On 09/04/16 16:13, Aneesh Kumar K.V wrote:
quoted hunk ↗ jump to hunk
With radix there is no mmu cache. Hence we don't need to do much
in update_mmu_cache.

Signed-off-by: Aneesh Kumar K.V <redacted>
---
 arch/powerpc/mm/mem.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index f980da6d7569..3164ce720b3e 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)
Acked-by: Balbir Singh <bsingharora@gmail.com>
Thread (139 messages) 139 messages, 9 authors, last reply 2016-11-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help