Page MenuHomeFreeBSD

linuxkpi: Add `usleep_range_state()`
ClosedPublic

Authored by dumbbell on Jun 14 2026, 9:20 AM.
Tags
None
Referenced Files
F166004871: D57579.id179723.diff
Mon, Aug 10, 11:14 PM
F165958627: D57579.diff
Mon, Aug 10, 5:36 PM
Unknown Object (File)
Sun, Aug 9, 6:51 PM
Unknown Object (File)
Fri, Aug 7, 5:56 PM
Unknown Object (File)
Fri, Aug 7, 7:19 AM
Unknown Object (File)
Mon, Aug 3, 2:46 AM
Unknown Object (File)
Sun, Aug 2, 5:44 AM
Unknown Object (File)
Sat, Aug 1, 6:03 AM
Subscribers

Details

Summary

It takes a task state as its last argument. We enforce that this state is TASK_UNINTERRUPTIBLE for the time being because other states are not interpreted.

Change usleep_range() to call usleep_range_state() with the state set to TASK_UNINTERRUPTIBLE, which is what Linux does too. The amdgpu DRM driver starte to use usleep_range_state() in Linux 6.13.

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

Sponsored by: The FreeBSD Foundation

Diff Detail

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