diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-03 01:35:07 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-03 01:35:07 +0000 |
commit | 04b29b3ae3a53539f6295f02bf9c221392042d1e (patch) | |
tree | 2d79388e08df3d5a16931467ea6fd075e5a61c9e | |
parent | 123c29841f5a0c93ff74004730564077408bd32a (diff) |
Silly dlg hz/500 isnt a whole lot. Also removed busy-wait in
ami_quartz_exec. This fixes interactivity issues that we saw when running
iogen. This is possible due to the new run-queue model for io.
ok dlg@
-rw-r--r-- | sys/dev/ic/ami.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index d728cde6d1d..8bba16031e8 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.137 2006/03/29 13:38:05 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.138 2006/04/03 01:35:06 marco Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -634,13 +634,6 @@ ami_quartz_init(struct ami_softc *sc) int ami_quartz_exec(struct ami_softc *sc, struct ami_iocmd *cmd) { - u_int32_t i; - - i = 0; - while (sc->sc_mbox->acc_busy && (i < AMI_MAX_BUSYWAIT)) { - delay(1); - i++; - } if (sc->sc_mbox->acc_busy) { AMI_DPRINTF(AMI_D_CMD, ("mbox_busy ")); return (EBUSY); @@ -1014,7 +1007,7 @@ ami_runqueue(void *arg) s = splbio(); while ((ccb = TAILQ_FIRST(&sc->sc_ccb_preq)) != NULL) { if (sc->sc_exec(sc, &ccb->ccb_cmd) != 0) { - timeout_add(&sc->sc_run_tmo, hz/500); + timeout_add(&sc->sc_run_tmo, 1); break; } |