]> git.proxmox.com Git - mirror_spl-debian.git/blame - config/kernel-urange-sleep.m4
dch: close a bug and refresh timestamp.
[mirror_spl-debian.git] / config / kernel-urange-sleep.m4
CommitLineData
34ee731f
AX
1dnl #
2dnl # 2.6.36 API compatibility.
3dnl # Added usleep_range timer.
4dnl # usleep_range is a finer precision implementation of msleep
5dnl # designed to be a drop-in replacement for udelay where a precise
6dnl # sleep / busy-wait is unnecessary.
7dnl #
8AC_DEFUN([SPL_AC_USLEEP_RANGE], [
9 AC_MSG_CHECKING([whether usleep_range() is available])
10 SPL_LINUX_TRY_COMPILE([
11 #include <linux/delay.h>
12 ],[
13 usleep_range(0, 0);
14 ],[
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_USLEEP_RANGE, 1,
17 [usleep_range is available])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])