Re: mbg(4): tsleep(9) -> tsleep_nsec(9)

2020-12-05 Thread Claudio Jeker
On Fri, Dec 04, 2020 at 12:08:39PM -0600, Scott Cheloha wrote: > On Fri, Dec 04, 2020 at 10:07:07AM +0100, Claudio Jeker wrote: > > On Thu, Dec 03, 2020 at 10:42:50PM -0600, Scott Cheloha wrote: > > > Hi, > > > > > > mbg(4) is among the few remaining drivers using tsleep(9). > > > > > > In a few

Re: mbg(4): tsleep(9) -> tsleep_nsec(9)

2020-12-04 Thread Scott Cheloha
On Fri, Dec 04, 2020 at 10:07:07AM +0100, Claudio Jeker wrote: > On Thu, Dec 03, 2020 at 10:42:50PM -0600, Scott Cheloha wrote: > > Hi, > > > > mbg(4) is among the few remaining drivers using tsleep(9). > > > > In a few spots, when the kernel is not cold, the driver will spin for > > up to 1/10

Re: mbg(4): tsleep(9) -> tsleep_nsec(9)

2020-12-04 Thread Claudio Jeker
On Thu, Dec 03, 2020 at 10:42:50PM -0600, Scott Cheloha wrote: > Hi, > > mbg(4) is among the few remaining drivers using tsleep(9). > > In a few spots, when the kernel is not cold, the driver will spin for > up to 1/10 seconds waiting for the MBG_BUSY flag to go low. > > We can approximate this

mbg(4): tsleep(9) -> tsleep_nsec(9)

2020-12-03 Thread Scott Cheloha
Hi, mbg(4) is among the few remaining drivers using tsleep(9). In a few spots, when the kernel is not cold, the driver will spin for up to 1/10 seconds waiting for the MBG_BUSY flag to go low. We can approximate this behavior by spinning 10 times and sleeping 10 milliseconds each iteration. 10