Re: mkbd(4) delay fix
Marcus Comstedt <[email protected]> Sun, 19 Oct 2008 17:09:07 +0200
| Newsgroups | gmane.os.netbsd.ports.dreamcast,gmane.os.netbsd.ports.sh3 |
|---|---|
| Message-ID | <[email protected]> |
"Matt Fleming" <[email protected]> writes: > Index: sys/arch/dreamcast/dev/maple/mkbd.c > =================================================================== > RCS file: /cvsroot/src/sys/arch/dreamcast/dev/maple/mkbd.c,v > retrieving revision 1.25 > diff -u -r1.25 mkbd.c > --- sys/arch/dreamcast/dev/maple/mkbd.c 17 Oct 2007 19:54:10 -0000 1.25 > +++ sys/arch/dreamcast/dev/maple/mkbd.c 19 Oct 2008 13:49:12 -0000 > @@ -308,8 +308,7 @@ > while (polledkey == -1) { > if (mkbd_console_softc != NULL && > mkbd_console_softc->sc_parent != NULL) { > - int t; > - for (t = 0; t < 1000000; t++); > + delay(30); > maple_run_polling(mkbd_console_softc->sc_parent); > } > } > I've committed a variant of this fix which uses a delay more consistent with the polling interval in normal use (20 ms). // Marcus