lkcd disables smp on 2.4

Jonathan Sambrook <[email protected]> Mon, 29 Mar 2004 13:22:30 +0100
Newsgroups gmane.linux.lkcd.general
Message-ID <20040329122230.GD1060@jsambrook>
At 15:35 on Tue 09/12/03, [email protected] masquerading as 'Hariprasad Nellitheertha' wrote:
> Hello All,
> 
> I was able to get the patches for 2.4.23 ready. I am reproducing the
> steps to get this working from yesterday's note.
> 
> 1. Download the "2.4" and "lkcdutils" code from cvs using the tag
> "linux-2423". Use the following commands to download them.
> 
> cvs -z 9 -d:pserver:[email protected]:443/cvsroot/lkcd co -P
> -r linux-2423 2.4
> 
> cvs -z 9 -d:pserver:[email protected]:443/cvsroot/lkcd co -P
> -r linux-2423 lkcdutils
> 
> 2. Copy over the 2.4 directory contents onto the linux-2.4.23 vanilla
> source tree.
> 
> 3. Apply the lkcd-2423.patch (attached with this note) to the kernel
> source tree. 
> 
> 4. Build and boot to the new kernel. You should have an lkcd enabled
> 2.4.23 kernel.
> 
> 5. The normal configure/make/make install steps will suffice for
> lkcdutils.
> 
> Kindly test this and let us know the results. 

Current CVS for 2.4 effectively disables SMP on i386.

Fault lies in arch/i386/kernel/smpboot.c


The following fixes the issue:

//----------------------------------------------------------------------
--- smpboot.c.cvs    2004-03-29 12:58:22.000000000 +0100
+++ smpboot.c   2004-03-29 12:58:43.000000000 +0100
@@ -51,7 +51,7 @@
 static int smp_b_stepping;
 
 /* Setup configured maximum number of CPUs to activate */
-static int max_cpus = -1;
+static int max_cpus = NR_CPUS;
 
 /* Total count of live CPUs */
 int smp_num_cpus = 1;
//----------------------------------------------------------------------
 
-- 
                   
 Jonathan Sambrook 
Software  Developer 
 Designer  Servers
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAaBUGSUOTbbpGXDwRAtW+AJ9Ll5t/1NkkyUGldkavZzQSuwUJQgCggYtp
DL9yDR0lXIBsTI5id5oXONg=
=u4bf
-----END PGP SIGNATURE-----