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)
Nov 18 2024, 11:06 PM
Unknown Object (File)
Nov 18 2024, 9:04 PM
Unknown Object (File)
Nov 18 2024, 5:50 AM
Unknown Object (File)
Nov 17 2024, 2:55 PM
Unknown Object (File)
Nov 15 2024, 3:12 PM
Unknown Object (File)
Nov 11 2024, 8:23 AM
Unknown Object (File)
Nov 11 2024, 6:19 AM
Unknown Object (File)
Oct 29 2024, 5:53 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.