[417] in arla-drinkers

home help back first fref pref prev next nref lref last post

smp

daemon@ATHENA.MIT.EDU (Gerald Britton)
Tue Dec 8 23:28:23 1998

From owner-arla-drinkers@stacken.kth.se Wed Dec 09 04:28:22 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 4721 invoked from network); 9 Dec 1998 04:28:21 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 9 Dec 1998 04:28:21 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id FAA22988
	for arla-drinkers-list; Wed, 9 Dec 1998 05:23:15 +0100 (MET)
Received: from light-brigade.mit.edu (qmailr@LIGHT-BRIGADE.MIT.EDU [18.244.1.25])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with SMTP id FAA22984
	for <arla-drinkers@stacken.kth.se>; Wed, 9 Dec 1998 05:23:10 +0100 (MET)
Received: (qmail 11552 invoked by uid 3499); 8 Dec 1998 23:23:01 -0500
Message-ID: <19981208232300.A4697@light-brigade.mit.edu>
Date: Tue, 8 Dec 1998 23:23:00 -0500
From: Gerald Britton <gbritton@mit.edu>
To: arla-drinkers@stacken.kth.se
Subject: smp
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.93.2
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

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)

home help back first fref pref prev next nref lref last post