]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix for a really stupid off by 1 bug.
authorDave Jones <davej@redhat.com>
Thu, 26 Feb 2004 00:52:00 +0000 (16:52 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 00:52:00 +0000 (16:52 -0800)
I goofed in my last patch to this code..
It reported 1 less CPU than it should have. Doh.

init/main.c

index 740f14b1241f113b0994a5c156778f5d2f9f4f91..74fce35f2598e8d334c9e78ebadcee3bcb613612 100644 (file)
@@ -350,7 +350,7 @@ static void __init setup_per_cpu_areas(void)
 static void __init smp_init(void)
 {
        unsigned int i;
-       unsigned j = 0;
+       unsigned j = 1;
 
        /* FIXME: This should be done in userspace --RR */
        for (i = 0; i < NR_CPUS; i++) {