]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Double x86 initialise fix.
authorDave Jones <davej@codemonkey.org.uk>
Fri, 1 Nov 2002 06:22:47 +0000 (22:22 -0800)
committerDave Jones <davej@codemonkey.org.uk>
Fri, 1 Nov 2002 06:22:47 +0000 (22:22 -0800)
For many moons, we've been executing identify_cpu()
on the boot processor twice on SMP kernels.
This is harmless, but has a few downsides..
- Extra cruft in bootlog/dmesg
- Spawns one too many timers for the mcheck handler
- possibly other wasteful things..

This seems to do the right thing here, and has been
acked (after some minor squibbles) on l-k.

arch/i386/kernel/smpboot.c

index 7b6a24fa656ba9daee175ac07fcf9e9c2e16e544..879970460b8e4e8ee3fb6a1d4847ecc63c018ba6 100644 (file)
@@ -118,7 +118,8 @@ static void __init smp_store_cpu_info(int id)
        struct cpuinfo_x86 *c = cpu_data + id;
 
        *c = boot_cpu_data;
-       identify_cpu(c);
+       if (id!=0)
+               identify_cpu(c);
        /*
         * Mask B, Pentium, but not Pentium MMX
         */