3 dnl # Moved things from linux/sched.h to linux/sched/rt.h
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED_RT_HEADER], [
6 ZFS_LINUX_TEST_SRC([sched_rt_header], [
7 #include <linux/sched.h>
8 #include <linux/sched/rt.h>
14 AC_DEFUN([ZFS_AC_KERNEL_SCHED_RT_HEADER], [
15 AC_MSG_CHECKING([whether header linux/sched/rt.h exists])
16 ZFS_LINUX_TEST_RESULT([sched_rt_header], [
19 ZFS_LINUX_TEST_ERROR([sched_rt_header])
24 dnl # 4.11 API change,
25 dnl # Moved things from linux/sched.h to linux/sched/signal.h
27 AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED_SIGNAL_HEADER], [
28 ZFS_LINUX_TEST_SRC([sched_signal_header], [
29 #include <linux/sched.h>
30 #include <linux/sched/signal.h>
36 AC_DEFUN([ZFS_AC_KERNEL_SCHED_SIGNAL_HEADER], [
37 AC_MSG_CHECKING([whether header linux/sched/signal.h exists])
38 ZFS_LINUX_TEST_RESULT([sched_signal_header], [
39 AC_DEFINE(HAVE_SCHED_SIGNAL_HEADER, 1,
40 [linux/sched/signal.h exists])
49 dnl # The io_schedule_timeout() function is present in all 2.6.32 kernels
50 dnl # but it was not exported until Linux 3.19. The RHEL 7.x kernels which
51 dnl # are based on a 3.10 kernel do export this symbol.
53 AC_DEFUN([ZFS_AC_KERNEL_SRC_IO_SCHEDULE_TIMEOUT], [
54 ZFS_LINUX_TEST_SRC([io_schedule_timeout], [
55 #include <linux/sched.h>
57 (void) io_schedule_timeout(1);
61 AC_DEFUN([ZFS_AC_KERNEL_IO_SCHEDULE_TIMEOUT], [
62 AC_MSG_CHECKING([whether io_schedule_timeout() is available])
63 ZFS_LINUX_TEST_RESULT_SYMBOL([io_schedule_timeout],
64 [io_schedule_timeout], [], [
66 AC_DEFINE(HAVE_IO_SCHEDULE_TIMEOUT, 1, [yes])
72 AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED], [
73 ZFS_AC_KERNEL_SRC_SCHED_RT_HEADER
74 ZFS_AC_KERNEL_SRC_SCHED_SIGNAL_HEADER
75 ZFS_AC_KERNEL_SRC_IO_SCHEDULE_TIMEOUT
78 AC_DEFUN([ZFS_AC_KERNEL_SCHED], [
79 ZFS_AC_KERNEL_SCHED_RT_HEADER
80 ZFS_AC_KERNEL_SCHED_SIGNAL_HEADER
81 ZFS_AC_KERNEL_IO_SCHEDULE_TIMEOUT