]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r294520:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 7 Apr 2016 07:52:09 +0000 (07:52 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 7 Apr 2016 07:52:09 +0000 (07:52 +0000)
commiteb41e5288a6f7670ac3058eb6c2912584c9685ec
treeaf92c1f01c2241b12b2a94299555b2f461cafd4f
parent0c17b5cc420502d5e05fd85a75ac4a26e4cf4102
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@297658 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/ofed/include/asm/atomic-long.h
sys/ofed/include/asm/atomic.h