[PATCH 03/14] ARM: bugs: hook processor bug checking into SMP and suspend paths
From: linux@armlinux.org.uk (Russell King - ARM Linux)
Date: 2018-05-19 10:13:32
Also in:
kvmarm
From: linux@armlinux.org.uk (Russell King - ARM Linux)
Date: 2018-05-19 10:13:32
Also in:
kvmarm
On Wed, May 16, 2018 at 09:23:01AM -0700, Florian Fainelli wrote:
On 05/16/2018 04:00 AM, Russell King wrote:quoted
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 2da087926ebe..5ad0b67b9e33 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c@@ -31,6 +31,7 @@ #include <linux/irq_work.h> #include <linux/atomic.h> +#include <asm/bugs.h> #include <asm/smp.h> #include <asm/cacheflush.h> #include <asm/cpu.h>@@ -405,6 +406,9 @@ asmlinkage void secondary_start_kernel(void) * before we continue - which happens after __cpu_up returns. */ set_cpu_online(cpu, true); + + check_other_bugs();Given what is currently implemented, I don't think the location of check_other_bugs() matters too much, but we might have to move this after the local_irq_enable() at some point if we need to check for e.g: a bogus local timer or whatever?
We could move it later if we need to. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up