summaryrefslogtreecommitdiff
path: root/src/cpu/x86/tsc
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-07-19 20:04:24 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:00:13 +0000
commit0199d3bd7f60109796e8f97ac1bb4df0a237f7f1 (patch)
tree588114ef227b08fe7ac119951c575809d546c79f /src/cpu/x86/tsc
parentc73178892902f43f74ad29d65e1ce8775c2d800e (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/cpu/x86/tsc')
-rw-r--r--src/cpu/x86/tsc/delay_tsc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c
index 893d41dc3b..9607c2c6eb 100644
--- a/src/cpu/x86/tsc/delay_tsc.c
+++ b/src/cpu/x86/tsc/delay_tsc.c
@@ -1,8 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <arch/cpu.h>
#include <cpu/x86/tsc.h>
-#include <pc80/i8254.h>
-#include <smp/spinlock.h>
#include <delay.h>
#include <thread.h>