File: kernel-timer.m4

package info (click to toggle)
zfs-linux 2.3.4~git20250812.3b64a96-1
  • links: PTS, VCS
  • area: contrib
  • in suites: experimental
  • size: 70,688 kB
  • sloc: ansic: 393,668; sh: 68,068; asm: 47,734; python: 8,160; makefile: 5,125; perl: 859; sed: 41
file content (32 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dnl #
dnl # 6.2: timer_delete_sync introduced, del_timer_sync deprecated and made
dnl #      into a simple wrapper
dnl # 6.15: del_timer_sync removed
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_TIMER_DELETE_SYNC], [
	ZFS_LINUX_TEST_SRC([timer_delete_sync], [
		#include <linux/timer.h>
	],[
		struct timer_list *timer __attribute__((unused)) = NULL;
		timer_delete_sync(timer);
	])
])

AC_DEFUN([ZFS_AC_KERNEL_TIMER_DELETE_SYNC], [
	AC_MSG_CHECKING([whether timer_delete_sync() is available])
	ZFS_LINUX_TEST_RESULT([timer_delete_sync], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_TIMER_DELETE_SYNC, 1,
		    [timer_delete_sync is available])
	],[
		AC_MSG_RESULT(no)
	])
])

AC_DEFUN([ZFS_AC_KERNEL_SRC_TIMER], [
	ZFS_AC_KERNEL_SRC_TIMER_DELETE_SYNC
])

AC_DEFUN([ZFS_AC_KERNEL_TIMER], [
	ZFS_AC_KERNEL_TIMER_DELETE_SYNC
])