Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/68203 )
Change subject: cpu/intel: Clean up includes ......................................................................
cpu/intel: Clean up includes
Signed-off-by: Elyes Haouas ehaouas@noos.fr Change-Id: Ie760711916c49d275ca49d94b9597fd24b5e7628 --- M src/cpu/intel/car/bootblock.c M src/cpu/intel/common/common_init.c M src/cpu/intel/microcode/microcode.c M src/cpu/intel/model_f3x/model_f3x_init.c 4 files changed, 22 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/68203/1
diff --git a/src/cpu/intel/car/bootblock.c b/src/cpu/intel/car/bootblock.c index dd9a772..c53379b 100644 --- a/src/cpu/intel/car/bootblock.c +++ b/src/cpu/intel/car/bootblock.c @@ -1,8 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <bootblock_common.h> #include <arch/bootblock.h> +#include <bootblock_common.h> #include <cpu/x86/bist.h> +#include <stdint.h>
static uint32_t saved_bist;
diff --git a/src/cpu/intel/common/common_init.c b/src/cpu/intel/common/common_init.c index 4d6df84..3a06281 100644 --- a/src/cpu/intel/common/common_init.c +++ b/src/cpu/intel/common/common_init.c @@ -4,8 +4,10 @@ #include <arch/cpu.h> #include <console/console.h> #include <cpu/intel/msr.h> -#include <cpu/x86/msr.h> #include <cpu/intel/turbo.h> +#include <cpu/x86/msr.h> +#include <types.h> + #include "common.h"
#define CPUID_6_ECX_EPB (1 << 3) diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c index bb2edfa..ac9453f 100644 --- a/src/cpu/intel/microcode/microcode.c +++ b/src/cpu/intel/microcode/microcode.c @@ -2,14 +2,13 @@
/* Microcode update for Intel PIII and later CPUs */
-#include <stdint.h> -#include <stddef.h> -#include <cbfs.h> #include <arch/cpu.h> +#include <cbfs.h> #include <console/console.h> -#include <cpu/x86/msr.h> #include <cpu/intel/microcode.h> +#include <cpu/x86/msr.h> #include <smp/spinlock.h> +#include <types.h>
DECLARE_SPIN_LOCK(microcode_lock)
diff --git a/src/cpu/intel/model_f3x/model_f3x_init.c b/src/cpu/intel/model_f3x/model_f3x_init.c index fdc5a1e..198490f 100644 --- a/src/cpu/intel/model_f3x/model_f3x_init.c +++ b/src/cpu/intel/model_f3x/model_f3x_init.c @@ -1,12 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <device/device.h> #include <cpu/cpu.h> -#include <cpu/x86/mtrr.h> -#include <cpu/intel/microcode.h> -#include <cpu/intel/hyperthreading.h> #include <cpu/intel/common/common.h> +#include <cpu/intel/hyperthreading.h> +#include <cpu/intel/microcode.h> #include <cpu/x86/cache.h> +#include <cpu/x86/mtrr.h> +#include <device/device.h>
static void model_f3x_init(struct device *cpu) {