Atheros AR5B22 WLAN+Bluetooth support on FreeBSD
Alexey Dokuchaev
danfe at freebsd.org
Mon Apr 15 12:30:14 UTC 2019
On Sat, Apr 13, 2019 at 12:35:30PM -0700, Adrian Chadd wrote:
> On Sat, 13 Apr 2019 at 12:14, Alexey Dokuchaev wrote:
> > ...
> > If you tell me how to implement Linuxish usleep_range() correctly in
> > our userland, I can do that. :-)
>
> usleep_range() is just the same as usleep() at either min, max or a value
> in between. It's just a hint to the scheduler that says "look, don't sleep
> exactly for this amount of time to wake me up; here are my bounds that are
> fine so if you schedule something else before then don't forget about me."
I understand, and it makes sense to give hints to the scheduler from the
kernel side, but less so when calling uslee() from userland.
> Just pick a value in between. :-)
Oh well, maybe that'll do.
./danfe
More information about the freebsd-wireless
mailing list