]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-totalhigh_pages.m4
Wait in 'S' state when send/recv pipe is blocking
[mirror_zfs.git] / config / kernel-totalhigh_pages.m4
1 dnl #
2 dnl # 5.0 API change
3 dnl #
4 dnl # ca79b0c211af mm: convert totalram_pages and totalhigh_pages variables to atomic
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_TOTALHIGH_PAGES], [
7 AC_MSG_CHECKING([whether totalhigh_pages() exists])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/highmem.h>
10 ],[
11 unsigned long pages __attribute__ ((unused));
12 pages = totalhigh_pages();
13 ],[
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_TOTALHIGH_PAGES, 1, [totalhigh_pages() exists])
16 ],[
17 AC_MSG_RESULT(no)
18 ])
19 ])