HomeFreeBSD

MFC r294520:

Description

MFC r294520:
LinuxKPI atomic fixes:

  • Fix implementation of atomic_add_unless(). The atomic_cmpset_int() function returns a boolean and not the previous value of the atomic variable.
  • The atomic counters should be signed according to Linux.
  • Some minor cosmetics and styling while at it.

Reviewed by: alfred @
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Reviewer
alfred
Parents
rS297658: MFC r294520:
Branches
Unknown
Tags
Unknown