powerpc/mm: Use HPTE constants when updating hpte bits
Even though we have same value for linux PTE bits and hash PTE pits use the hash pte bits wen updating hash pte Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
6f4441ef70
commit
92c08a0d52
@@ -153,7 +153,8 @@ static long pSeries_lpar_hpte_insert(unsigned long hpte_group,
|
||||
|
||||
/* Make pHyp happy */
|
||||
if ((rflags & _PAGE_NO_CACHE) && !(rflags & _PAGE_WRITETHRU))
|
||||
hpte_r &= ~_PAGE_COHERENT;
|
||||
hpte_r &= ~HPTE_R_M;
|
||||
|
||||
if (firmware_has_feature(FW_FEATURE_XCMO) && !(hpte_r & HPTE_R_N))
|
||||
flags |= H_COALESCE_CAND;
|
||||
|
||||
|
Reference in New Issue
Block a user