summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2004-02-25 16:52:00 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-25 16:52:00 -0800
commita82ac6ee72c84eb8c2a059bf6ce89d629070e054 (patch)
tree8de31ef1f37f180eb47cf75aeaf8181d656621da /init
parent906b4b7e58433f0e919dea781ae2645185d65ece (diff)
[PATCH] Fix for a really stupid off by 1 bug.
I goofed in my last patch to this code.. It reported 1 less CPU than it should have. Doh.
Diffstat (limited to 'init')
-rw-r--r--init/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 740f14b1241f..74fce35f2598 100644
--- a/init/main.c
+++ b/init/main.c
@@ -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++) {