From: Andi Kleen Date: Sat, 16 Apr 2005 22:24:52 +0000 (-0700) Subject: [PATCH] x86_64: disable interrupts during SMP bogomips checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=107ce721abddbd876aa6203ac982821e405400e9;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] x86_64: disable interrupts during SMP bogomips checking Port over a i386 kludge from rusty to x86-64 I don't think it is a full solution, but the upcomming smp bootup rewrite will solve it. This fixes BUGs at bootup on bigger x86-64 systems. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c index afd3600b919e..e5714090b00d 100644 --- a/arch/x86_64/kernel/smpboot.c +++ b/arch/x86_64/kernel/smpboot.c @@ -304,8 +304,6 @@ static void __init smp_callin(void) Dprintk("CALLIN, before setup_local_APIC().\n"); setup_local_APIC(); - local_irq_enable(); - /* * Get our bogomips. */ @@ -319,8 +317,6 @@ static void __init smp_callin(void) */ smp_store_cpu_info(cpuid); - local_irq_disable(); - /* * Allow the master to continue. */