]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()
authorNeel Chauhan <nc@FreeBSD.org>
Wed, 9 Jun 2021 21:38:52 +0000 (14:38 -0700)
committerNeel Chauhan <nc@FreeBSD.org>
Sat, 12 Jun 2021 00:41:11 +0000 (17:41 -0700)
commit658f5eed38c35f3f7d6695110b7dae8dc94d12c7
tree5beac1ac28afc10005374565c03a7c656e10e9fc
parentdf370b47a66f27e195a26d0e983a64a3756823bb
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)
Differential Revision: https://reviews.freebsd.org/D30710

(cherry picked from commit 8a1a42b2a7a428fb97fda9f19fd0d67a4eec7535)
sys/compat/linuxkpi/common/include/linux/lockdep.h
sys/sys/param.h