]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: bugs: add support for per-processor bug checking
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 10 May 2018 12:07:29 +0000 (13:07 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 May 2018 09:39:34 +0000 (10:39 +0100)
commit749478cac609048af3bee69abea5d862b46151aa
treee3fb1848b477558d8818301c77f0ed96a44ec1c9
parentadc68c2ec46b4fd4c58c56eb4e98d8e5023da3ec
ARM: bugs: add support for per-processor bug checking

Add support for per-processor bug checking - each processor function
descriptor gains a function pointer for this check, which must not be
an __init function.  If non-NULL, this will be called whenever a CPU
enters the kernel via which ever path (boot CPU, secondary CPU startup,
CPU resuming, etc.)

This allows processor specific bug checks to validate that workaround
bits are properly enabled by firmware via all entry paths to 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>
arch/arm/include/asm/proc-fns.h
arch/arm/kernel/bugs.c
arch/arm/mm/proc-macros.S