Page MenuHomeFreeBSD

LinuxKPI: add fsleep()
ClosedPublic

Authored by bz on Jul 27 2021, 3:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 10:58 AM
Unknown Object (File)
Mar 7 2024, 11:32 PM
Unknown Object (File)
Feb 22 2024, 1:01 PM
Unknown Object (File)
Jan 31 2024, 9:49 PM
Unknown Object (File)
Jan 18 2024, 12:16 AM
Unknown Object (File)
Jan 2 2024, 8:40 AM
Unknown Object (File)
Dec 23 2023, 3:53 AM
Unknown Object (File)
Nov 22 2023, 3:30 PM

Details

Summary

Add fsleep() function now required by rtw88. This seems to be
making a decision depending on time to sleep on how to sleep.
Given our compat framework already is lenient on how long to sleep,
this is a cut down version.

MFC after: 10 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40694
Build 37583: arc lint + arc unit

Event Timeline

bz requested review of this revision.Jul 27 2021, 3:26 PM
sys/compat/linuxkpi/common/include/linux/delay.h
84

IMO the scaling by hz deserves a comment

hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/delay.h
85

Do you have to use DELAY() ? Else use pause_sbt!

bz marked 2 inline comments as done.Jul 27 2021, 6:26 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/delay.h
84

will do if it'll survive the update triggered by @hselasky (see below).

85

I think the idea is to have a busy loop if the timeouts are small enough; now you asking make me notice that the code from this file had changed under my branch. I'll update and make this more fine grained after all.

bz marked 2 inline comments as done.

Change the logic using the previously missed updated implementations
in this file. Still keep it cut down (just the other way round).
This automatically addresses the comment from @hselasky and @emaste.

This revision is now accepted and ready to land.Jul 28 2021, 1:12 PM
This revision was automatically updated to reflect the committed changes.