From 554c052b48ac0b36503cb41b1c054a5ead7ae4b4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 7 Oct 2010 23:42:17 +0000 Subject: Remove some duplicate #include files (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5921 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/model_fxx/model_fxx_init.c | 6 ++---- src/cpu/amd/model_fxx/model_fxx_update_microcode.c | 10 ---------- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'src/cpu/amd/model_fxx') diff --git a/src/cpu/amd/model_fxx/model_fxx_init.c b/src/cpu/amd/model_fxx/model_fxx_init.c index 460cbf40d4..865198a52a 100644 --- a/src/cpu/amd/model_fxx/model_fxx_init.c +++ b/src/cpu/amd/model_fxx/model_fxx_init.c @@ -7,6 +7,7 @@ * Copyright 2005 AMD * 2005.08 yhlu add microcode support */ + #include #include #include @@ -17,17 +18,13 @@ #include #include #include - #include "northbridge/amd/amdk8/amdk8.h" - #include #include #include #include #include - #include - #include #if CONFIG_WAIT_BEFORE_CPUS_INIT @@ -110,6 +107,7 @@ struct mtrr { msr_t base; msr_t mask; }; + struct mtrr_state { struct mtrr mtrrs[MTRR_COUNT]; msr_t top_mem, top_mem2; diff --git a/src/cpu/amd/model_fxx/model_fxx_update_microcode.c b/src/cpu/amd/model_fxx/model_fxx_update_microcode.c index 85a652fc00..5cc0fba476 100644 --- a/src/cpu/amd/model_fxx/model_fxx_update_microcode.c +++ b/src/cpu/amd/model_fxx/model_fxx_update_microcode.c @@ -19,16 +19,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -/* - * Description: Microcode patch support for k8 by yhlu - */ - - #include #include #include #include - #include static uint8_t microcode_updates[] __attribute__ ((aligned(16))) = { @@ -80,7 +74,6 @@ static unsigned get_equivalent_processor_rev_id(unsigned orig_id) { }; - unsigned new_id; int i; @@ -94,7 +87,6 @@ static unsigned get_equivalent_processor_rev_id(unsigned orig_id) { } return new_id; - } void model_fxx_update_microcode(unsigned cpu_deviceid) @@ -105,6 +97,4 @@ void model_fxx_update_microcode(unsigned cpu_deviceid) equivalent_processor_rev_id = get_equivalent_processor_rev_id(cpu_deviceid ); if(equivalent_processor_rev_id != 0) amd_update_microcode(microcode_updates, equivalent_processor_rev_id); - } - -- cgit v1.2.3