diff --git a/sys/compat/linuxkpi/common/include/linux/delay.h b/sys/compat/linuxkpi/common/include/linux/delay.h index 32997071c2ae..860d36368a8e 100644 --- a/sys/compat/linuxkpi/common/include/linux/delay.h +++ b/sys/compat/linuxkpi/common/include/linux/delay.h @@ -41,7 +41,7 @@ linux_msleep(unsigned int ms) /* guard against invalid values */ if (ms == 0) ms = 1; - pause_sbt("lnxsleep", SBT_1MS * ms, 0, C_HARDCLOCK); + pause_sbt("lnxsleep", mstosbt(ms), 0, C_HARDCLOCK); } #undef msleep diff --git a/sys/compat/linuxkpi/common/src/linux_schedule.c b/sys/compat/linuxkpi/common/src/linux_schedule.c index b91164773c5b..601f41c2c267 100644 --- a/sys/compat/linuxkpi/common/src/linux_schedule.c +++ b/sys/compat/linuxkpi/common/src/linux_schedule.c @@ -83,7 +83,7 @@ linux_msleep_interruptible(unsigned int ms) /* guard against invalid values */ if (ms == 0) ms = 1; - ret = -pause_sbt("lnxsleep", SBT_1MS * ms, 0, C_HARDCLOCK | C_CATCH); + ret = -pause_sbt("lnxsleep", mstosbt(ms), 0, C_HARDCLOCK | C_CATCH); switch (ret) { case -EWOULDBLOCK: