Message ID | 6133e0f115d955fac4061536dab0fa7480a1c433.1565933217.git.christophe.leroy@c-s.fr (mailing list archive) |
---|---|
State | Accepted |
Commit | f204338f8e29777302042cba578b0da44f69695f |
Headers | show |
Series | [1/5] powerpc/mm: define empty update_mmu_cache() as static inline | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch next (c9633332103e55bc73d80d07ead28b95a22a85a3) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded |
snowpatch_ozlabs/build-pmac32 | success | Build succeeded |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
diff --git a/arch/powerpc/mm/book3s32/mmu.c b/arch/powerpc/mm/book3s32/mmu.c index 3a62bf99f93f..c20269be79ec 100644 --- a/arch/powerpc/mm/book3s32/mmu.c +++ b/arch/powerpc/mm/book3s32/mmu.c @@ -319,6 +319,8 @@ void hash_preload(struct mm_struct *mm, unsigned long ea) void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep) { + if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) + return; /* * We don't need to worry about _PAGE_PRESENT here because we are * called with either mm->page_table_lock held or ptl lock held
On powerpc 603, there is no hash table so get out of update_mmu_cache() early. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> --- arch/powerpc/mm/book3s32/mmu.c | 2 ++ 1 file changed, 2 insertions(+)