summaryrefslogtreecommitdiff
path: root/src/arch/arm/include/armv7
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-11-22 10:35:40 -0700
committerFelix Held <felix-coreboot@felixheld.de>2021-11-25 10:42:17 +0000
commit8928ae380b7a75b4b23b021b706fa77b3e8d4af5 (patch)
treea0fd657996464084a98ee1a7915b218dd6c4518e /src/arch/arm/include/armv7
parente961033ec479d651d21de7c54c990abfc1d7063d (diff)
downloadcoreboot-8928ae380b7a75b4b23b021b706fa77b3e8d4af5.tar.gz
arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax
The cpu_relax method is defined for x86. This CL adds a no-op method so that it can be used in common code. BUG=b:179699789 TEST=none Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ifcb4546ceb2894eeb37589d0282b7e076d7a4747 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59546 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/arch/arm/include/armv7')
-rw-r--r--src/arch/arm/include/armv7/arch/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/arm/include/armv7/arch/cpu.h b/src/arch/arm/include/armv7/arch/cpu.h
index 3f1f1ae811..e3154e9488 100644
--- a/src/arch/arm/include/armv7/arch/cpu.h
+++ b/src/arch/arm/include/armv7/arch/cpu.h
@@ -6,6 +6,8 @@
#include <stdint.h>
#include <device/device.h>
+static inline void cpu_relax(void) { }
+
#define asmlinkage
struct cpu_driver {