]>
Commit | Line | Data |
---|---|---|
48ef8ba0 | 1 | dnl # |
608f8749 BB |
2 | dnl # 2.6.36 API compatibility- Added usleep_range timer. |
3 | dnl # | |
48ef8ba0 BB |
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. | |
7 | dnl # | |
608f8749 BB |
8 | AC_DEFUN([ZFS_AC_KERNEL_SRC_USLEEP_RANGE], [ |
9 | ZFS_LINUX_TEST_SRC([usleep_range], [ | |
48ef8ba0 BB |
10 | #include <linux/delay.h> |
11 | ],[ | |
12 | usleep_range(0, 0); | |
608f8749 BB |
13 | ]) |
14 | ]) | |
15 | ||
16 | AC_DEFUN([ZFS_AC_KERNEL_USLEEP_RANGE], [ | |
17 | AC_MSG_CHECKING([whether usleep_range() is available]) | |
18 | ZFS_LINUX_TEST_RESULT([usleep_range], [ | |
48ef8ba0 | 19 | AC_MSG_RESULT(yes) |
48ef8ba0 | 20 | ],[ |
066e8252 | 21 | ZFS_LINUX_TEST_ERROR([usleep_range()]) |
48ef8ba0 BB |
22 | ]) |
23 | ]) |