HomeFreeBSD

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()

Description

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()

In Linux, these are macros to locks in the kernel for scheduling purposes.
But as with other macros in this header, we aren't doing anything with them
so we are doing do {} while (0) for now.

This is needed by the drm-kmod 5.7 update.

Approved by: hselasky (src)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D30710

Details

Provenance
ncAuthored on Jun 9 2021, 9:38 PM
Differential Revision
D30710: linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()
Parents
R10:fee0d486ef34: linuxkpi: Add _RET_IP_ macro in kernel.h
Branches
Unknown
Tags
Unknown