summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/include/armv4/arch/cpu.h2
-rw-r--r--src/arch/arm/include/armv7/arch/cpu.h2
-rw-r--r--src/arch/arm64/include/armv8/arch/cpu.h3
-rw-r--r--src/arch/ppc64/include/arch/cpu.h2
-rw-r--r--src/arch/riscv/include/arch/cpu.h2
5 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/arm/include/armv4/arch/cpu.h b/src/arch/arm/include/armv4/arch/cpu.h
index 8a1b00ebeb..4c6cdf883e 100644
--- a/src/arch/arm/include/armv4/arch/cpu.h
+++ b/src/arch/arm/include/armv4/arch/cpu.h
@@ -3,6 +3,8 @@
#ifndef __ARCH_CPU_H__
#define __ARCH_CPU_H__
+static inline void cpu_relax(void) { }
+
#define asmlinkage
#endif /* __ARCH_CPU_H__ */
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 {
diff --git a/src/arch/arm64/include/armv8/arch/cpu.h b/src/arch/arm64/include/armv8/arch/cpu.h
index 15b2065443..e5e8a7cad3 100644
--- a/src/arch/arm64/include/armv8/arch/cpu.h
+++ b/src/arch/arm64/include/armv8/arch/cpu.h
@@ -3,6 +3,9 @@
#ifndef __ARCH_CPU_H__
#define __ARCH_CPU_H__
+/* TODO: Implement using SEV/WFE if this is ever actually used. */
+static inline void cpu_relax(void) { }
+
#define asmlinkage
struct cpu_driver { };
diff --git a/src/arch/ppc64/include/arch/cpu.h b/src/arch/ppc64/include/arch/cpu.h
index 5e5ba30ab5..638406d640 100644
--- a/src/arch/ppc64/include/arch/cpu.h
+++ b/src/arch/ppc64/include/arch/cpu.h
@@ -5,6 +5,8 @@
#include <device/device.h>
+static inline void cpu_relax(void) { }
+
#define asmlinkage
struct cpu_driver {
diff --git a/src/arch/riscv/include/arch/cpu.h b/src/arch/riscv/include/arch/cpu.h
index 7cf94615a6..d51d8a9200 100644
--- a/src/arch/riscv/include/arch/cpu.h
+++ b/src/arch/riscv/include/arch/cpu.h
@@ -6,6 +6,8 @@
#include <arch/encoding.h>
#include <device/device.h>
+static inline void cpu_relax(void) { }
+
#define asmlinkage
struct cpu_driver {