Whamcloud - gitweb
LU-2800 autoconf: remove LC_SET_CPUS_ALLOWED test
[fs/lustre-release.git] / lustre / autoconf / lustre-core.m4
index 5a778c2..ec50de0 100644 (file)
@@ -769,19 +769,6 @@ EXTRA_KCFLAGS="-I$LINUX/fs"
 EXTRA_KCFLAGS=$tmp_flags
 ])
 
-# 2.6.32 set_cpus_allowed is no more defined if CONFIG_CPUMASK_OFFSTACK=yes
-AC_DEFUN([LC_SET_CPUS_ALLOWED],
-         [AC_MSG_CHECKING([if kernel defines set_cpus_allowed])
-          LB_LINUX_TRY_COMPILE(
-                [#include <linux/sched.h>],
-                [struct task_struct *p = NULL;
-                 cpumask_t mask = { { 0 } };
-                 (void) set_cpus_allowed(p, mask);],
-                [AC_MSG_RESULT([yes])
-                 AC_DEFINE(HAVE_SET_CPUS_ALLOWED, 1,
-                           [set_cpus_allowed is exported by the kernel])],
-                [AC_MSG_RESULT([no])] )])
-
 #
 # 2.6.36 fs_struct.lock use spinlock instead of rwlock.
 #
@@ -1599,7 +1586,6 @@ AC_DEFUN([LC_PROG_LINUX],
 
          # 2.6.32
          LC_BLK_QUEUE_MAX_SEGMENTS
-         LC_SET_CPUS_ALLOWED
 
         # 2.6.34
         LC_HAVE_DQUOT_FS_DISK_QUOTA