Page MenuHomeFreeBSD

linuxkpi: Add cond_resched_lock
ClosedPublic

Authored by manu on Mar 21 2022, 10:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 17, 4:02 AM
Unknown Object (File)
Fri, Jan 16, 8:02 PM
Unknown Object (File)
Thu, Jan 8, 3:21 AM
Unknown Object (File)
Fri, Dec 26, 11:39 PM
Unknown Object (File)
Dec 17 2025, 7:59 PM
Unknown Object (File)
Nov 10 2025, 5:29 AM
Unknown Object (File)
Nov 8 2025, 4:32 PM
Unknown Object (File)
Nov 2 2025, 4:00 AM

Details

Summary

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
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Mar 21 2022, 10:16 AM
This revision is now accepted and ready to land.Mar 21 2022, 10:30 AM
sys/compat/linuxkpi/common/include/linux/sched.h
140

Commit message says returns 1 ....

sys/compat/linuxkpi/common/include/linux/sched.h
140

Oops, will change this :)

This revision was automatically updated to reflect the committed changes.