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>
This commit is contained in:
Raul E Rangel 2021-11-22 10:35:40 -07:00 committed by Felix Held
parent e961033ec4
commit 8928ae380b
5 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#ifndef __ARCH_CPU_H__
#define __ARCH_CPU_H__
static inline void cpu_relax(void) { }
#define asmlinkage
#endif /* __ARCH_CPU_H__ */

View File

@ -6,6 +6,8 @@
#include <stdint.h>
#include <device/device.h>
static inline void cpu_relax(void) { }
#define asmlinkage
struct cpu_driver {

View File

@ -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 { };

View File

@ -5,6 +5,8 @@
#include <device/device.h>
static inline void cpu_relax(void) { }
#define asmlinkage
struct cpu_driver {

View File

@ -6,6 +6,8 @@
#include <arch/encoding.h>
#include <device/device.h>
static inline void cpu_relax(void) { }
#define asmlinkage
struct cpu_driver {