+# Kernel version 3.19 commit 5aaba36318e5995e8c95d077a46d9a4d00fcc1cd
+# This patch creates a new helper function cpumap_print_to_pagebuf in
+# cpumask.h using newly added bitmap_print_to_pagebuf and consolidates
+# most of those sysfs functions using the new helper function.
+#
+AC_DEFUN([LIBCFS_HAVE_CPUMASK_PRINT_TO_PAGEBUF],[
+LB_CHECK_COMPILE([does function 'cpumap_print_to_pagebuf' exist],
+cpumap_print_to_pagebuf, [
+ #include <linux/topology.h>
+],[
+ int n;
+ char *buf = NULL;
+ const struct cpumask *mask = NULL;
+ n = cpumap_print_to_pagebuf(true, buf, mask);
+],[
+ AC_DEFINE(HAVE_CPUMASK_PRINT_TO_PAGEBUF, 1,
+ [cpumap_print_to_pagebuf is available])
+])
+]) # LIBCFS_HAVE_CPUMASK_PRINT_TO_PAGEBUF
+
+#