summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/sximmc.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-01-11 01:18:29 +0000
committercheloha <cheloha@openbsd.org>2020-01-11 01:18:29 +0000
commit53e687890b86c96cf8940d17fb9fe3adb61e3b87 (patch)
treeab718cc98787bbfa910431f04f8cd54c870809ec /sys/dev/fdt/sximmc.c
parentremove sli(4) (diff)
downloadwireguard-openbsd-53e687890b86c96cf8940d17fb9fe3adb61e3b87.tar.xz
wireguard-openbsd-53e687890b86c96cf8940d17fb9fe3adb61e3b87.zip
sximmc(4): tsleep(9) -> tsleep_nsec(9)
mpi@ missed this one in the prior commit. probably ok bluhm@
Diffstat (limited to 'sys/dev/fdt/sximmc.c')
-rw-r--r--sys/dev/fdt/sximmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/sximmc.c b/sys/dev/fdt/sximmc.c
index 71c2cbacd5a..1d6e1ba7132 100644
--- a/sys/dev/fdt/sximmc.c
+++ b/sys/dev/fdt/sximmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sximmc.c,v 1.10 2020/01/09 14:35:20 mpi Exp $ */
+/* $OpenBSD: sximmc.c,v 1.11 2020/01/11 01:18:29 cheloha Exp $ */
/* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */
/*-
@@ -978,8 +978,8 @@ sximmc_exec_command(sdmmc_chipset_handle_t sch, struct sdmmc_command *cmd)
cmd->c_error = sximmc_dma_prepare(sc, cmd);
MMC_WRITE(sc, SXIMMC_CMD, cmdval | cmd->c_opcode);
if (cmd->c_error == 0) {
- cmd->c_error = tsleep(&sc->sc_idma_idst,
- PWAIT, "idma", hz*10);
+ cmd->c_error = tsleep_nsec(&sc->sc_idma_idst,
+ PWAIT, "idma", SEC_TO_NSEC(10));
}
sximmc_dma_complete(sc);
if (sc->sc_idma_idst & SXIMMC_IDST_ERROR) {