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
_______________________________________________
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to