HomeFreeBSD

linuxkpi: Add `usleep_range_state()`

Description

linuxkpi: Add usleep_range_state()

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.

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57579

Details

Provenance
dumbbellAuthored on Jun 12 2026, 4:00 PM
Reviewer
emaste
Differential Revision
D57579: linuxkpi: Add `usleep_range_state()`
Parents
rG6d5f5f730a42: linuxkpi: Add `to_acpi_device_node()` and `ACPI_COMPANION()`
Branches
Unknown
Tags
Unknown