mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
powerpc/mm: ppc 603 doesn't need update_mmu_cache()
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> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/6133e0f115d955fac4061536dab0fa7480a1c433.1565933217.git.christophe.leroy@c-s.fr
This commit is contained in:
parent
f49f4e2b68
commit
f204338f8e
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
|
||||||
pte_t *ptep)
|
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
|
* 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
|
* called with either mm->page_table_lock held or ptl lock held
|
||||||
|
|
Loading…
Reference in a new issue