From 20bc5e6e59073b8c5c310b05b235aa8c6f04f936 Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 28 Aug 2003 14:34:51 +0000 Subject: [PATCH] cpu affinity are not depended on arch, fix bug 1307 --- lnet/archdep.m4 | 3 ++- lustre/portals/archdep.m4 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lnet/archdep.m4 b/lnet/archdep.m4 index 1a7741bc..41349fd 100644 --- a/lnet/archdep.m4 +++ b/lnet/archdep.m4 @@ -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 diff --git a/lustre/portals/archdep.m4 b/lustre/portals/archdep.m4 index 1a7741bc..41349fd 100644 --- a/lustre/portals/archdep.m4 +++ b/lustre/portals/archdep.m4 @@ -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 -- 1.8.3.1