summaryrefslogtreecommitdiff
path: root/src/cpu/x86/lapic
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-07 10:07:12 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-10-26 16:37:34 +0000
commit45d3205ba565ababcaf1e9e85a63dd7a0b1d72be (patch)
tree69fb098295fb88197d4f2ce77bfda3af1a957c9b /src/cpu/x86/lapic
parentdeb5645644edf8b8594f89acf4d33544a8ea6f44 (diff)
cpu/x86: Clean up includes
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I01c6651079333686cb0eb68e89e56d7907868124 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68204 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/cpu/x86/lapic')
-rw-r--r--src/cpu/x86/lapic/boot_cpu.c4
-rw-r--r--src/cpu/x86/lapic/lapic.c4
-rw-r--r--src/cpu/x86/lapic/lapic_cpu_stop.c1
3 files changed, 5 insertions, 4 deletions
diff --git a/src/cpu/x86/lapic/boot_cpu.c b/src/cpu/x86/lapic/boot_cpu.c
index cf220d5187..fd708704da 100644
--- a/src/cpu/x86/lapic/boot_cpu.c
+++ b/src/cpu/x86/lapic/boot_cpu.c
@@ -1,8 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <smp/node.h>
-#include <cpu/x86/msr.h>
#include <cpu/x86/lapic_def.h>
+#include <cpu/x86/msr.h>
+#include <smp/node.h>
#if CONFIG(SMP)
int boot_cpu(void)
diff --git a/src/cpu/x86/lapic/lapic.c b/src/cpu/x86/lapic/lapic.c
index 2d04fb3a80..24d2e37d47 100644
--- a/src/cpu/x86/lapic/lapic.c
+++ b/src/cpu/x86/lapic/lapic.c
@@ -1,13 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <assert.h>
+#include <console/console.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
#include <cpu/x86/lapic_def.h>
#include <cpu/x86/msr.h>
-#include <console/console.h>
#include <smp/node.h>
-#include <stdint.h>
+#include <types.h>
void enable_lapic_mode(bool try_set_x2apic)
{
diff --git a/src/cpu/x86/lapic/lapic_cpu_stop.c b/src/cpu/x86/lapic/lapic_cpu_stop.c
index 1affe15bed..6eacba6c21 100644
--- a/src/cpu/x86/lapic/lapic_cpu_stop.c
+++ b/src/cpu/x86/lapic/lapic_cpu_stop.c
@@ -4,6 +4,7 @@
#include <cpu/x86/lapic.h>
#include <delay.h>
#include <halt.h>
+#include <stdint.h>
/**
* Sending INIT IPI to self is equivalent of asserting #INIT with a bit of