summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2010-07-02 03:24:51 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2010-07-02 03:24:51 +0000
commit060f209cc54d589b2f1b32a24d27f19eb2cb4f99 (patch)
treec7665607fc0494c82a40837db73179222059de03
parent17df78769e62888f697709e91fae01a5c354c560 (diff)
timeout_add -> timeout_add_msec
ok miod@ some time ago
-rw-r--r--sys/arch/sgi/dev/mavb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/dev/mavb.c b/sys/arch/sgi/dev/mavb.c
index dd38632a85d..78deca07723 100644
--- a/sys/arch/sgi/dev/mavb.c
+++ b/sys/arch/sgi/dev/mavb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mavb.c,v 1.11 2009/11/18 21:13:17 jakemsr Exp $ */
+/* $OpenBSD: mavb.c,v 1.12 2010/07/02 03:24:50 blambert Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -1216,8 +1216,8 @@ mavb_button_repeat(void *hdl)
value |= (right << AD1843_RDA1G_SHIFT);
ad1843_reg_write(sc, AD1843_DAC1_ANALOG_GAIN, value);
- timeout_add(&sc->sc_volume_button_to,
- (hz * MAVB_VOLUME_BUTTON_REPEAT_DELN) / 1000);
+ timeout_add_msec(&sc->sc_volume_button_to,
+ MAVB_VOLUME_BUTTON_REPEAT_DELN);
} else {
/* Enable volume button interrupts again. */
intmask = bus_space_read_8(sc->sc_st, sc->sc_isash,
@@ -1244,8 +1244,8 @@ mavb_intr(void *arg)
bus_space_write_8(sc->sc_st, sc->sc_isash, MACE_ISA_INT_MASK,
intmask & ~MACE_ISA_INT_AUDIO_SC);
- timeout_add(&sc->sc_volume_button_to,
- (hz * MAVB_VOLUME_BUTTON_REPEAT_DEL1) / 1000);
+ timeout_add_msec(&sc->sc_volume_button_to,
+ MAVB_VOLUME_BUTTON_REPEAT_DEL1);
}
if (intstat & MACE_ISA_INT_AUDIO_DMA1)