Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5b9177f authored by Russell King's avatar Russell King
Browse files

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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Boot-tested-by: default avatarTony Lindgren <tony@atomide.com>
Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent f5683e76
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10,10 +10,10 @@
#ifndef __ASM_BUGS_H
#define __ASM_BUGS_H

#ifdef CONFIG_MMU
extern void check_writebuffer_bugs(void);

#define check_bugs() check_writebuffer_bugs()
#ifdef CONFIG_MMU
extern void check_bugs(void);
#else
#define check_bugs() do { } while (0)
#endif
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ else
obj-y		+= entry-armv.o
endif

obj-$(CONFIG_MMU)		+= bugs.o
obj-$(CONFIG_CPU_IDLE)		+= cpuidle.o
obj-$(CONFIG_ISA_DMA_API)	+= dma.o
obj-$(CONFIG_FIQ)		+= fiq.o fiqasm.o

arch/arm/kernel/bugs.c

0 → 100644
+9 −0
Original line number Diff line number Diff line
// SPDX-Identifier: GPL-2.0
#include <linux/init.h>
#include <asm/bugs.h>
#include <asm/proc-fns.h>

void __init check_bugs(void)
{
	check_writebuffer_bugs();
}