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)
Sun, Apr 19, 6:54 AM
Unknown Object (File)
Sun, Apr 19, 5:59 AM
Unknown Object (File)
Sat, Apr 18, 7:48 PM
Unknown Object (File)
Fri, Apr 17, 10:45 AM
Unknown Object (File)
Wed, Apr 15, 12:21 AM
Unknown Object (File)
Mar 15 2026, 6:01 AM
Unknown Object (File)
Jan 17 2026, 4:02 AM
Unknown Object (File)
Jan 16 2026, 8:02 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.