diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-07-19 20:04:24 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-07-26 21:00:13 +0000 |
commit | 0199d3bd7f60109796e8f97ac1bb4df0a237f7f1 (patch) | |
tree | 588114ef227b08fe7ac119951c575809d546c79f /src/arch/arm/include/armv4 | |
parent | c73178892902f43f74ad29d65e1ce8775c2d800e (diff) |
arch/x86: Move cpu_relax()
It's not related to spinlocks and the actual implementation
was also guarded by CONFIG(SMP).
With a single call-site in x86-specific code, empty stubs
for other arch are currently not necessary.
Also drop an unused included on a nearby line.
Change-Id: I00439e9c1d10c943ab5e404f5d687d316768fa16
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43808
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/arm/include/armv4')
-rw-r--r-- | src/arch/arm/include/armv4/arch/smp/spinlock.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/arch/arm/include/armv4/arch/smp/spinlock.h b/src/arch/arm/include/armv4/arch/smp/spinlock.h index 5245bd1a02..4d40f3304f 100644 --- a/src/arch/arm/include/armv4/arch/smp/spinlock.h +++ b/src/arch/arm/include/armv4/arch/smp/spinlock.h @@ -9,7 +9,6 @@ #define spin_unlock_wait(lock) do {} while (0) #define spin_lock(lock) do {} while (0) #define spin_unlock(lock) do {} while (0) -#define cpu_relax() do {} while (0) #include <smp/node.h> #define boot_cpu() 1 |