xref: /freebsd/sys/contrib/openzfs/config/kernel-timer.m4 (revision b1c1ee4429fcca8f69873a8be66184e68e1b19d7)
1dnl #
2dnl # 6.2: timer_delete_sync introduced, del_timer_sync deprecated and made
3dnl #      into a simple wrapper
4dnl # 6.15: del_timer_sync removed
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SRC_TIMER_DELETE_SYNC], [
7	ZFS_LINUX_TEST_SRC([timer_delete_sync], [
8		#include <linux/timer.h>
9	],[
10		struct timer_list *timer __attribute__((unused)) = NULL;
11		timer_delete_sync(timer);
12	])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_TIMER_DELETE_SYNC], [
16	AC_MSG_CHECKING([whether timer_delete_sync() is available])
17	ZFS_LINUX_TEST_RESULT([timer_delete_sync], [
18		AC_MSG_RESULT(yes)
19		AC_DEFINE(HAVE_TIMER_DELETE_SYNC, 1,
20		    [timer_delete_sync is available])
21	],[
22		AC_MSG_RESULT(no)
23	])
24])
25
26AC_DEFUN([ZFS_AC_KERNEL_SRC_TIMER], [
27	ZFS_AC_KERNEL_SRC_TIMER_DELETE_SYNC
28])
29
30AC_DEFUN([ZFS_AC_KERNEL_TIMER], [
31	ZFS_AC_KERNEL_TIMER_DELETE_SYNC
32])
33