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
Parents
rS352666: powerpc: Allocate DPCPU block from domain-local memory
Branches
Unknown
Tags
Unknown