HomeFreeBSD

linuxkpi: Add cond_resched_lock

Description

linuxkpi: Add cond_resched_lock

If we need to resched it takes the lock, resched, release the lock
and returns 1, otherwise simply returns 0.

Needed by drm v5.9

MFC after: 1 month
Reviewed by: hselasky
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D34620

(cherry picked from commit 9b8016548ef61e2c42271c7dce35d0322540d2f1)

Details

Provenance
manuAuthored on Mar 21 2022, 10:14 AM
Reviewer
hselasky
Differential Revision
D34620: linuxkpi: Add cond_resched_lock
Parents
rG972ea9cc57fd: hpet: Allow a MMIO window smaller than 1K
Branches
Unknown
Tags
Unknown