HomeFreeBSD

LinuxKPI atomic fixes:

Description

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 @
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Reviewer
alfred
Parents
rS294519: Create an acct package for accounting tools.
Branches
Unknown
Tags
Unknown