Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: bugs: prepare processor bug infrastructure

Prepare the processor bug infrastructure so that it can be expanded to
check for per-processor bugs.

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>

+12 -2
+2 -2
arch/arm/include/asm/bugs.h
··· 10 10 #ifndef __ASM_BUGS_H 11 11 #define __ASM_BUGS_H 12 12 13 - #ifdef CONFIG_MMU 14 13 extern void check_writebuffer_bugs(void); 15 14 16 - #define check_bugs() check_writebuffer_bugs() 15 + #ifdef CONFIG_MMU 16 + extern void check_bugs(void); 17 17 #else 18 18 #define check_bugs() do { } while (0) 19 19 #endif
+1
arch/arm/kernel/Makefile
··· 31 31 obj-y += entry-armv.o 32 32 endif 33 33 34 + obj-$(CONFIG_MMU) += bugs.o 34 35 obj-$(CONFIG_CPU_IDLE) += cpuidle.o 35 36 obj-$(CONFIG_ISA_DMA_API) += dma.o 36 37 obj-$(CONFIG_FIQ) += fiq.o fiqasm.o
+9
arch/arm/kernel/bugs.c
··· 1 + // SPDX-Identifier: GPL-2.0 2 + #include <linux/init.h> 3 + #include <asm/bugs.h> 4 + #include <asm/proc-fns.h> 5 + 6 + void __init check_bugs(void) 7 + { 8 + check_writebuffer_bugs(); 9 + }