4 dnl # ca79b0c211af mm: convert totalram_pages and totalhigh_pages variables to atomic
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>
11 unsigned long pages __attribute__ ((unused));
12 pages = totalhigh_pages();
15 AC_DEFINE(HAVE_TOTALHIGH_PAGES, 1, [totalhigh_pages() exists])