diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-05-10 08:00:43 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2018-05-31 05:39:29 -0400 |
commit | 26602161b5ba795928a5a719fe1d5d9f2ab5c3ef (patch) | |
tree | 205fe9aec9e513f0a7abb0451d35245c02f1a22a /arch/arm/kernel/bugs.c | |
parent | a5b9177f69329314721aa7022b7e69dab23fa1f0 (diff) |
ARM: bugs: hook processor bug checking into SMP and suspend paths
Check for CPU bugs when secondary processors are being brought online,
and also when CPUs are resuming from a low power mode. This gives an
opportunity to check that processor specific bug workarounds are
correctly enabled for all paths that a CPU re-enters the kernel.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Boot-tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kernel/bugs.c')
-rw-r--r-- | arch/arm/kernel/bugs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/kernel/bugs.c b/arch/arm/kernel/bugs.c index 88024028bb70..16e7ba2a9cc4 100644 --- a/arch/arm/kernel/bugs.c +++ b/arch/arm/kernel/bugs.c | |||
@@ -3,7 +3,12 @@ | |||
3 | #include <asm/bugs.h> | 3 | #include <asm/bugs.h> |
4 | #include <asm/proc-fns.h> | 4 | #include <asm/proc-fns.h> |
5 | 5 | ||
6 | void check_other_bugs(void) | ||
7 | { | ||
8 | } | ||
9 | |||
6 | void __init check_bugs(void) | 10 | void __init check_bugs(void) |
7 | { | 11 | { |
8 | check_writebuffer_bugs(); | 12 | check_writebuffer_bugs(); |
13 | check_other_bugs(); | ||
9 | } | 14 | } |