diff options
| author | Dave Jones <davej@codemonkey.org.uk> | 2002-10-31 22:22:47 -0800 |
|---|---|---|
| committer | Dave Jones <davej@codemonkey.org.uk> | 2002-10-31 22:22:47 -0800 |
| commit | 2267966f8398224fd2256d335d5702cfc7b184ce (patch) | |
| tree | 046746e07d7a4055506882fc88a4e38a50f0eea2 | |
| parent | 758634f5a3c38f67d55a9e3838ee054e1985d28f (diff) | |
[PATCH] Double x86 initialise fix.
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.
| -rw-r--r-- | arch/i386/kernel/smpboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index 7b6a24fa656b..879970460b8e 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c @@ -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 */ |
