drm: Implement kref_get_unless_zero()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 22 Feb 2014 15:09:12 +0000 (16:09 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 22 Feb 2014 15:14:19 +0000 (16:14 +0100)
commit1dca50141d93bd25ce733eb877343172b089f68d
tree9f9e532230e5fefc46073adbf97086e2ce7fbc2d
parent216f7a2c25c13321dd8578f5b1749c16ea6e357e
drm: Implement kref_get_unless_zero()

Fortunately the existing atomic_add_unless() function is able to manage
all the complexity of this algorithm by itself.
sys/dev/drm/include/linux/kref.h