HomeFreeBSD

powerpc/atomic: Follow recommendations on atomic primitive comparisons

Description

powerpc/atomic: Follow recommendations on atomic primitive comparisons

Both IBM and Freescale programming examples presume the cmpset operands will
favor equal, and pessimize the non-equal case instead. Do the same for
atomic_cmpset_* and atomic_fcmpset_*. This slightly pessimizes the failure
case, in favor of the success case.

MFC after: 3 weeks

Details

Provenance
jhibbitsAuthored on Sep 25 2019, 1:39 AM
Parents
rG0cfa351ec5ca: powerpc: Allocate DPCPU block from domain-local memory
Branches
Unknown
Tags
Unknown

Event Timeline