From: Glauber de Oliveira Costa Date: Wed, 19 Mar 2008 17:25:50 +0000 (-0300) Subject: x86: calibrate delay with irqs enabled X-Git-Tag: MMI-PSA29.97-13-9~35624^2~347 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e481fcf8563d300e7f8875cae5fdc41941d29de0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git x86: calibrate delay with irqs enabled We do it to make it close to x86_64. The later needs it, otherwise the nmi watchdog can get into the scene and kill us with a hammer. Enabling irqs here used to trigger a bug in i386. This is because time irq handling relies upon structures that are only initialized after smp initcalls (More precisely, it will find per_cpu(hrtimer_bases, cpu)->cb_pending list not initialized and crash) Signed-off-by: Glauber Costa Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index dbfaeb30a69a..bd2f8863efa2 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c @@ -167,7 +167,9 @@ static void __cpuinit smp_callin(void) /* * Get our bogomips. */ + local_irq_enable(); calibrate_delay(); + local_irq_disable(); Dprintk("Stack at about %p\n",&cpuid); /*