public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Double x86 initialise fix.
@ 2002-10-26 12:42 davej
  2002-10-26 13:56 ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: davej @ 2002-10-26 12:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: alan

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..

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/arch/i386/kernel/smpboot.c linux-2.5/arch/i386/kernel/smpboot.c
--- bk-linus/arch/i386/kernel/smpboot.c	2002-10-20 20:21:24.000000000 -0100
+++ linux-2.5/arch/i386/kernel/smpboot.c	2002-10-25 15:39:26.000000000 -0100
@@ -118,7 +118,8 @@ static void __init smp_store_cpu_info(in
 	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
 	 */

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-10-28 19:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-26 12:42 [PATCH] Double x86 initialise fix davej
2002-10-26 13:56 ` Alan Cox
2002-10-26 13:49   ` Dave Jones
2002-10-26 13:57     ` Alan Cox
2002-10-26 15:00       ` Martin J. Bligh
2002-10-26 15:03         ` Martin J. Bligh
2002-10-26 15:46         ` Alan Cox
2002-10-28 19:57           ` Zwane Mwaikambo
2002-10-26 14:08     ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox