2 dnl # 2.6.36 API compatibility- Added usleep_range timer.
4 dnl # usleep_range is a finer precision implementation of msleep
5 dnl # designed to be a drop-in replacement for udelay where a precise
6 dnl # sleep / busy-wait is unnecessary.
8 AC_DEFUN([ZFS_AC_KERNEL_SRC_USLEEP_RANGE], [
9 ZFS_LINUX_TEST_SRC([usleep_range], [
10 #include <linux/delay.h>
16 AC_DEFUN([ZFS_AC_KERNEL_USLEEP_RANGE], [
17 AC_MSG_CHECKING([whether usleep_range() is available])
18 ZFS_LINUX_TEST_RESULT([usleep_range], [
21 ZFS_LINUX_TEST_ERROR([usleep_range()])