HomeFreeBSD

linuxkpi: Add atomic_dec_and_mutex_lock

Description

linuxkpi: Add atomic_dec_and_mutex_lock

This function decrement the counter and if the result is 0 it acquires
the mutex and returns 1, if not it simply returns 0.
Needed by DRM from Linux v5.3

Sponsored-by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24847

Details

Provenance
manuAuthored on
Differential Revision
D24847: linuxkpi: Add atomic_dec_and_mutex_lock
Parents
rS361137: Remove redundant checks for nhop validity.
Branches
Unknown
Tags
Unknown