Whamcloud - gitweb
cpu affinity are not depended on arch, fix bug 1307
authorwangdi <wangdi>
Thu, 28 Aug 2003 14:34:51 +0000 (14:34 +0000)
committerwangdi <wangdi>
Thu, 28 Aug 2003 14:34:51 +0000 (14:34 +0000)
lnet/archdep.m4
lustre/portals/archdep.m4

index 1a7741b..41349fd 100644 (file)
@@ -225,7 +225,8 @@ fi
 #AC_SUBST(usrprefix)
 
 AC_MSG_CHECKING(if kernel has CPU affinity support)
-if test "$target_cpu" != ia64 ; then
+SET_CPUS_ALLOW="`grep -c set_cpus_allowed $LINUX/kernel/softirq.c`"
+if test "$SET_CPUS_ALLOW" != 0 ; then
   enable_affinity_temp="-DCPU_AFFINITY=1"
   AC_MSG_RESULT(yes)
 else
index 1a7741b..41349fd 100644 (file)
@@ -225,7 +225,8 @@ fi
 #AC_SUBST(usrprefix)
 
 AC_MSG_CHECKING(if kernel has CPU affinity support)
-if test "$target_cpu" != ia64 ; then
+SET_CPUS_ALLOW="`grep -c set_cpus_allowed $LINUX/kernel/softirq.c`"
+if test "$SET_CPUS_ALLOW" != 0 ; then
   enable_affinity_temp="-DCPU_AFFINITY=1"
   AC_MSG_RESULT(yes)
 else