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.

(cherry picked from commit 3687797618b6c978ad733bd206a623e5df47dbe3)

Details

Provenance
alcAuthored on Jul 24 2021, 8:50 AM
markjCommitted on Aug 31 2021, 7:09 PM
Parents
rG1fe88bc8512b: amd64: Eliminate a redundant test from pmap_enter_object()
Branches
Unknown
Tags
Unknown