Page MenuHomeFreeBSD

linuxkpi: Add `usleep_range_state()`
Needs ReviewPublic

Authored by dumbbell on Sun, Jun 14, 9:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 16, 3:47 AM
Unknown Object (File)
Mon, Jun 15, 4:50 PM
Unknown Object (File)
Mon, Jun 15, 3:25 PM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
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

Lint
Lint Skipped
Unit
Tests Skipped