Re: lpt(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)

2020-01-15 Thread Scott Cheloha
On Wed, Jan 15, 2020 at 11:08:04AM +0100, Martin Pieuchot wrote: > On 14/01/20(Tue) 18:37, Scott Cheloha wrote: > > Ticks to milliseconds. > > [...] > > @@ -303,16 +304,17 @@ lptpushbytes(struct lpt_softc *sc) > > while (NOT_READY()) { > > if (++spin

Re: lpt(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)

2020-01-15 Thread Martin Pieuchot
On 14/01/20(Tue) 18:37, Scott Cheloha wrote: > Ticks to milliseconds. > [...] > @@ -303,16 +304,17 @@ lptpushbytes(struct lpt_softc *sc) > while (NOT_READY()) { > if (++spin < sc->sc_spinmax) > continue; > -

lpt(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)

2020-01-14 Thread Scott Cheloha
Ticks to milliseconds. I've changed "tic" to "msecs" in the backoff loop to make the units more obvious. I went with 10ms as the starting sleep. A perfect conversion would start at something like (tick / 1000), but obviously we're trying to move away from that sort of thing. Absent a better ide