powerpc/mm: Move WIMG update to helper.
Only difference here is, we apply the WIMG mapping early, so rflags passed to updatepp will also be changed. Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
c6a3c495f0
commit
40e8550afc
@@ -91,14 +91,6 @@ int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
|
||||
/* clear HPTE slot informations in new PTE */
|
||||
new_pte = (new_pte & ~_PAGE_HPTEFLAGS) | _PAGE_HASHPTE;
|
||||
|
||||
/* Add in WIMG bits */
|
||||
rflags |= (new_pte & (_PAGE_WRITETHRU | _PAGE_NO_CACHE |
|
||||
_PAGE_COHERENT | _PAGE_GUARDED));
|
||||
/*
|
||||
* enable the memory coherence always
|
||||
*/
|
||||
rflags |= HPTE_R_M;
|
||||
|
||||
slot = hpte_insert_repeating(hash, vpn, pa, rflags, 0,
|
||||
mmu_psize, ssize);
|
||||
|
||||
|
Reference in New Issue
Block a user