Re: SMP=1 and Cyrix 6x86

Stephen Frost (sfrost@ns.snowman.net)
Thu, 15 Oct 1998 20:56:33 -0400 (EDT)


On Thu, 15 Oct 1998, Matthias Andree wrote:

> On Wed, Oct 14, 1998 at 04:00:58PM +1000, Warwick Mitchell wrote:
> > I seem to remember Linus saying that it is SMP by default only for his
> > own convenience and that it would be commented out for 2.2
>
> Maybe there should be (|x|menu)config menu item "SMP symmetric
> multiprocessor support" - if that's not possible, I suggest to create
> one in spite of that which actually only checks the correct SMP state
> in the Makefile and if it's incorrect, it issues an appropriate error
> message and aborts the make process.

Here is a patch for i386, sparc and sparc64. I tested it out
for i386 and it appears to work okay, no clue about sparc and sparc64
but I expect they will work as well. I tested it out w/ 'make config',
but I believe it will work with 'make menuconfig' and 'make xconfig',
but I'm not sure and would like to hear from folks on if it does/does
not work.

I went ahead and cc'ed the maintainers of SMP, SPARC and
MenuConfig, I couldn't find any other relevant maintainers to cc.

Again, this is NOT well-tested, I would request that people
test it out and get back to me if it does/doesn't work so I can fix
any bugs in it.

I'd like to know about other architectures and if they support
SMP or not, if not I can easily enough set this up to make sure
'#SMP = 0' in the Makefile, if so I will gladly update those config.in
files w/ this patch, please let me know.

Stephen

--- arch/i386/config.in.old Thu Oct 15 20:46:18 1998
+++ arch/i386/config.in Thu Oct 15 20:23:03 1998
@@ -17,6 +17,14 @@
Pentium/K5/5x86/6x86 CONFIG_M586 \
PPro/K6/6x86MX CONFIG_M686" Pentium
bool 'Math emulation' CONFIG_MATH_EMULATION
+bool 'SMP (Symetric Multi-Processors)' CONFIG_SMP
+if [ "$CONFIG_SMP" = "y" ]; then
+ cat Makefile | sed -e 's/^#*SMP = [0,1]/SMP = 1/' > .tmpmakefile
+ mv .tmpmakefile Makefile
+else
+ cat Makefile | sed -e 's/^#*SMP = [0,1]/#SMP = 0/' > .tmpmakefile
+ mv .tmpmakefile Makefile
+fi
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
bool 'MTRR (Memory Type Range Register) support' CONFIG_MTRR
fi

--- arch/sparc/config.in.old Thu Oct 15 20:46:32 1998
+++ arch/sparc/config.in Thu Oct 15 20:28:13 1998
@@ -64,6 +64,14 @@
fi

tristate 'Openprom tree appears in /proc/openprom (EXPERIMENTAL)' CONFIG_SUN_OPENPROMFS
+bool 'SMP (Symetric Multi-Processors)' CONFIG_SMP
+if [ "$CONFIG_SMP" = "y" ]; then
+ cat Makefile | sed -e 's/^#*SMP = [0,1]/SMP = 1/' > .tmpmakefile
+ mv .tmpmakefile Makefile
+else
+ cat Makefile | sed -e 's/^#*SMP = [0,1]/#SMP = 0/' > .tmpmakefile
+ mv .tmpmakefile Makefile
+fi
bool 'Networking support' CONFIG_NET
bool 'System V IPC' CONFIG_SYSVIPC
bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT

--- arch/sparc64/config.in.old Thu Oct 15 20:46:39 1998
+++ arch/sparc64/config.in Thu Oct 15 20:28:49 1998
@@ -60,6 +60,14 @@
if [ "$CONFIG_PCI" = "y" ]; then
bool 'Backward-compatible /proc/pci' CONFIG_PCI_OLD_PROC
fi
+bool 'SMP (Symetric Multi-Processors)' CONFIG_SMP
+if [ "$CONFIG_SMP" = "y" ]; then
+ cat Makefile | sed -e 's/^#*SMP = [0,1]/SMP = 1/' > .tmpmakefile
+ mv .tmpmakefile Makefile
+else
+ cat Makefile | sed -e 's/^#*SMP = [0,1]/#SMP = 0/' > .tmpmakefile
+ mv .tmpmakefile Makefile
+fi
bool 'Networking support' CONFIG_NET
bool 'System V IPC' CONFIG_SYSVIPC
bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/