Port-sh3 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mkbd(4) delay fix



"Matt Fleming" <mjf%NetBSD.org@localhost> 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




Home | Main Index | Thread Index | Old Index