diff options
author | 2009-01-21 21:53:59 +0000 | |
---|---|---|
committer | 2009-01-21 21:53:59 +0000 | |
commit | 668304ad6be7e645e5dea8abfd51305a92cce8c4 (patch) | |
tree | f0bcfe36e5d834c40c4420eb36607991f813631c /sys/dev/sdmmc | |
parent | make declarations "C" to allow c++ code to compile (diff) | |
download | wireguard-openbsd-668304ad6be7e645e5dea8abfd51305a92cce8c4.tar.xz wireguard-openbsd-668304ad6be7e645e5dea8abfd51305a92cce8c4.zip |
Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes.
ok krw@ miod@
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index 2c18ab4a8bc..101fe0218a3 100644 --- a/sys/dev/sdmmc/sdmmc_scsi.c +++ b/sys/dev/sdmmc/sdmmc_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_scsi.c,v 1.11 2008/12/02 23:49:54 deraadt Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.12 2009/01/21 21:54:00 grange Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -417,7 +417,7 @@ sdmmc_start_xs(struct sdmmc_softc *sc, struct sdmmc_ccb *ccb) return COMPLETE; } - timeout_add(&xs->stimeout, (xs->timeout * hz) / 1000); + timeout_add_msec(&xs->stimeout, xs->timeout); sdmmc_add_task(sc, &ccb->ccb_task); return SUCCESSFULLY_QUEUED; } |