Page MenuHomeFreeBSD

linuxkpi: Define diagnostic macros like `might_resched()` or `cant_sleep()`
Needs ReviewPublic

Authored by dumbbell on Thu, Apr 16, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 1:47 PM
Unknown Object (File)
Sat, Apr 18, 7:50 AM
Unknown Object (File)
Sat, Apr 18, 6:12 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

They are no-ops on FreeBSD.

While here, move the already defined might_sleep*() macros from <linux/wait.h> to <linux/kernel.h> where they belong.

The DRM generic code started to use might_fault() in Linux 6.12.

This is part of the update of DRM drivers to Linux 6.12.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped