powerpc/pseries: Don't opencode HPTE_V_BOLTED
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 24 Oct 2019 09:35:40 +0000 (15:05 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 28 Oct 2019 10:54:16 +0000 (21:54 +1100)
No functional change in this patch.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191024093542.29777-1-aneesh.kumar@linux.ibm.com
arch/powerpc/platforms/pseries/lpar.c

index f87a5c64e24dcf534de83255baf8d7bbd441433f..3126fc02e50bf2bce9dacf6c0d403cb94dcf843b 100644 (file)
@@ -774,7 +774,7 @@ static long pSeries_lpar_hpte_remove(unsigned long hpte_group)
 
                /* don't remove a bolted entry */
                lpar_rc = plpar_pte_remove(H_ANDCOND, hpte_group + slot_offset,
-                                          (0x1UL << 4), &dummy1, &dummy2);
+                                          HPTE_V_BOLTED, &dummy1, &dummy2);
                if (lpar_rc == H_SUCCESS)
                        return i;