smp
Gerald Britton
gbritton at mit.edu
Wed Dec 9 05:23:15 CET 1998
The fix for smp in 0.17.1 doesn't work, you endup with a "no" in the kernel
flags, this fix works, or something else would work...
--- configure.in~ Mon Dec 7 19:10:23 1998
+++ configure.in Tue Dec 8 23:12:20 1998
@@ -63,7 +63,7 @@
AC_ARG_ENABLE(smp,
[ --enable-smp compile for SMP (currently only on Linux)],
[if test "$enableval" = "yes"; then
- smp="-D__SMP__"
+ smp="yes"
else
smp="no"
fi
@@ -204,13 +204,16 @@
smp_[0-9a-z]*,dnl
changequote([,])dnl
[#include <linux/modules/ksyms.ver>
-__ver_get_module_symbol], smp='-D__SMP__', [
+__ver_get_module_symbol], smp='yes', [
if grep 'smp_[0-9a-z]*\>' /proc/ksyms >/dev/null || test `grep -c '^processor' /proc/cpuinfo` -gt 1; then
- smp='-D__SMP__'
+ smp='yes'
fi
fi
])
- KERNEL_CFLAGS="-DMODULE -D__KERNEL__ $smp"
+ if test "X$smp" = "Xyes"; then
+ ksmp="-D__SMP__"
+ fi
+ KERNEL_CFLAGS="-DMODULE -D__KERNEL__ $ksmp"
XFS_SUBDIR=linux
KERNEL=/dev/null
AC_MSG_RESULT(Linux)
More information about the Arla-drinkers
mailing list