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)
Mon, Nov 10, 5:29 AM
Unknown Object (File)
Sat, Nov 8, 4:32 PM
Unknown Object (File)
Sun, Nov 2, 4:00 AM
Unknown Object (File)
Oct 29 2025, 7:38 PM
Unknown Object (File)
Oct 28 2025, 1:03 AM
Unknown Object (File)
Oct 27 2025, 2:34 PM
Unknown Object (File)
Oct 27 2025, 5:15 AM
Unknown Object (File)
Oct 19 2025, 6:40 PM

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.