HomeFreeBSD

amd64: Don't repeat unnecessary tests when cmpset fails

Description

amd64: Don't repeat unnecessary tests when cmpset fails

When a cmpset for removing the PG_RW bit in pmap_promote_pde() fails,
there is no need to repeat the alignment, PG_A, and PG_V tests just to
reload the PTE's value. The only bit that we need be concerned with at
this point is PG_M. Use fcmpset instead.

MFC after: 1 week

Details

Provenance
alcAuthored on Jul 24 2021, 8:50 AM
Parents
rG735041a6138a: arm64: allwinner: Remove sun50i-a64-opp
Branches
Unknown
Tags
Unknown