Remove some duplicate #include files (trivial).
authorUwe Hermann <uwe@hermann-uwe.de>
Thu, 7 Oct 2010 23:42:17 +0000 (23:42 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 7 Oct 2010 23:42:17 +0000 (23:42 +0000)
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5921 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

18 files changed:
src/cpu/amd/model_10xxx/model_10xxx_init.c
src/cpu/amd/model_fxx/model_fxx_init.c
src/cpu/amd/model_fxx/model_fxx_update_microcode.c
src/cpu/amd/model_gx2/model_gx2_init.c
src/cpu/intel/model_1067x/model_1067x_init.c
src/cpu/intel/model_106cx/model_106cx_init.c
src/cpu/intel/model_69x/model_69x_init.c
src/cpu/intel/model_6dx/model_6dx_init.c
src/cpu/intel/model_6ex/model_6ex_init.c
src/cpu/intel/model_6fx/model_6fx_init.c
src/cpu/intel/model_6xx/model_6xx_init.c
src/cpu/intel/model_f0x/model_f0x_init.c
src/cpu/intel/model_f1x/model_f1x_init.c
src/cpu/intel/model_f2x/model_f2x_init.c
src/cpu/intel/model_f3x/model_f3x_init.c
src/cpu/intel/model_f4x/model_f4x_init.c
src/cpu/via/model_c3/model_c3_init.c
src/cpu/via/model_c7/model_c7_init.c

index 7fc3e277aba5289dd78960d6328ced9fc91e22d4..9cd6d66e4abf3232241e1a1b9d033054ec2864b2 100644 (file)
@@ -27,9 +27,7 @@
 #include <cpu/x86/pae.h>
 #include <pc80/mc146818rtc.h>
 #include <cpu/x86/lapic.h>
-
 #include "northbridge/amd/amdfam10/amdfam10.h"
-
 #include <cpu/amd/model_10xxx_rev.h>
 #include <cpu/cpu.h>
 #include <cpu/x86/cache.h>
index 460cbf40d4e34eee26f663d8e96b112091dfb9dc..865198a52aa48809c63cc61b8795442e15da385f 100644 (file)
@@ -7,6 +7,7 @@
  * Copyright 2005 AMD
  * 2005.08 yhlu add microcode support
  */
+
 #include <console/console.h>
 #include <cpu/x86/msr.h>
 #include <cpu/amd/mtrr.h>
 #include <cpu/x86/pae.h>
 #include <pc80/mc146818rtc.h>
 #include <cpu/x86/lapic.h>
-
 #include "northbridge/amd/amdk8/amdk8.h"
-
 #include <cpu/amd/model_fxx_rev.h>
 #include <cpu/amd/microcode.h>
 #include <cpu/cpu.h>
 #include <cpu/x86/cache.h>
 #include <cpu/x86/mtrr.h>
-
 #include <cpu/amd/multicore.h>
-
 #include <cpu/amd/model_fxx_msr.h>
 
 #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;
index 85a652fc00c65fa0067e4b0c8a4dfb98d56fdaa0..5cc0fba476424772255d9d3332c04b96d6e8f105 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-/*
- * Description: Microcode patch support for k8 by yhlu
- */
-
-
 #include <console/console.h>
 #include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
-
 #include <cpu/amd/microcode.h>
 
 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);
-
 }
-
index 435e89aa815f94fecef2dc7481ad1a0aee3d92e5..241c0f979f0dd050dc3bdf3110e7e095f739db93 100644 (file)
@@ -6,7 +6,6 @@
 #include <cpu/x86/lapic.h>
 #include <cpu/x86/cache.h>
 
-
 static void vsm_end_post_smi(void)
 {
        __asm__ volatile (
index a379805cb688e80c198a2f02abb7d43bca5228b6..7229b63ce92ce11e7c207c81c864ce07ce05b71a 100644 (file)
@@ -30,7 +30,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 #include <cpu/x86/name.h>
 
 static const uint32_t microcode_updates[] = {
index 4a621df31ab4e301ef5d96bda289c4790d41b043..257bb44f7fde2b0c1cfb5fe82ab514ff8750dc5e 100644 (file)
@@ -28,7 +28,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 #include <cpu/x86/name.h>
 #include <usbdebug.h>
 
index b6ea237366cc4df5793780cf788c09aeb3dc6f88..588ea69ab3e209cc07f9878f27445fbba6b0475b 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -9,7 +8,6 @@
 #include <cpu/x86/lapic.h>
 #include <cpu/intel/microcode.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 static uint32_t microcode_updates[] = {
        /*  Dummy terminator  */
@@ -19,7 +17,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_69x_init(device_t dev)
 {
        /* Turn on caching if we haven't already */
@@ -37,6 +34,7 @@ static void model_69x_init(device_t dev)
 static struct device_operations cpu_dev_ops = {
        .init     = model_69x_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x0690 }, /* Pentium M */
        { X86_VENDOR_INTEL, 0x0695 },
index 26c1b994994aee69b062355b500f46b8edbd9628..76b2e16f211cf9106149b4e935c5082a86883c8d 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -9,7 +8,6 @@
 #include <cpu/x86/lapic.h>
 #include <cpu/intel/microcode.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 static uint32_t microcode_updates[] = {
        /*  Dummy terminator  */
@@ -19,7 +17,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_6dx_init(device_t dev)
 {
        /* Turn on caching if we haven't already */
@@ -37,6 +34,7 @@ static void model_6dx_init(device_t dev)
 static struct device_operations cpu_dev_ops = {
        .init     = model_6dx_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x06D0 }, /* Pentium M on 90nm with 2MiB of L2 cache */
        { X86_VENDOR_INTEL, 0x06D6 }, /* Pentium M on 90nm with 2MiB of L2 cache */
index b6a951335ce5f1bd78a540f144c87754424b364f..384b2bf68b8b9107cdcf88ead6e179c63f10c2d0 100644 (file)
@@ -30,7 +30,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 #include <cpu/x86/name.h>
 #include <usbdebug.h>
 
index c43b8debb1f513d42148f2c6e5e44bbd0400bcac..0944aab955f2859ebbed7fb9cf7c082fbf97016b 100644 (file)
@@ -30,7 +30,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 #include <cpu/x86/name.h>
 #include <usbdebug.h>
 
index 712cd0508dc4f51dcdb004fd60627929ea8ad00a..5b8dd3519bce1bb22a330e134366ae215415c341 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -9,7 +8,6 @@
 #include <cpu/x86/lapic.h>
 #include <cpu/intel/microcode.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 static uint32_t microcode_updates[] = {
        /* WARNING - Intel has a new data structure that has variable length
@@ -33,7 +31,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_6xx_init(device_t dev)
 {
        /* Turn on caching if we haven't already */
index 568d4d70ee987dc0aa1b7479a5e98c173d8aebc1..a06068e571035272b017195ceac84478eda7fccf 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -9,7 +8,6 @@
 #include <cpu/x86/lapic.h>
 #include <cpu/intel/microcode.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 /* 256KB cache */
 static uint32_t microcode_updates[] = {
@@ -25,7 +23,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_f0x_init(device_t dev)
 {
        /* Turn on caching if we haven't already */
@@ -43,6 +40,7 @@ static void model_f0x_init(device_t dev)
 static struct device_operations cpu_dev_ops = {
        .init     = model_f0x_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x0f0A },
        { 0, 0 },
index f8dd1d85f7514b9512d65004be4c9a94a8573b2d..f70e96a035d76162967b9d2a5b0f836653dea61d 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -9,7 +8,6 @@
 #include <cpu/x86/lapic.h>
 #include <cpu/intel/microcode.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 /* 256KB cache */
 static uint32_t microcode_updates[] = {
@@ -25,7 +23,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_f1x_init(device_t dev)
 {
        /* Turn on caching if we haven't already */
@@ -43,6 +40,7 @@ static void model_f1x_init(device_t dev)
 static struct device_operations cpu_dev_ops = {
        .init     = model_f1x_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x0f12 },
        { 0, 0 },
index a77fe1ccd1eeaacec7406272d7153b91e2e284a7..ead1c8a2bbc4085f2d31f2b0724ba8fccd1f8334 100644 (file)
@@ -9,7 +9,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 /* 512KB cache */
 static uint32_t microcode_updates[] = {
@@ -49,6 +48,7 @@ static void model_f2x_init(device_t cpu)
 static struct device_operations cpu_dev_ops = {
        .init     = model_f2x_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x0f22 },
        { X86_VENDOR_INTEL, 0x0f24 },
index f59ef5d3714d5003d50c98a6c11388266b5aed62..f04ddcc0ce545d6fbda41ff5770c7582fec0ee12 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -10,7 +9,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 static uint32_t microcode_updates[] = {
        /* WARNING - Intel has a new data structure that has variable length
@@ -29,7 +27,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_f3x_init(device_t cpu)
 {
        /* Turn on caching if we haven't already */
@@ -50,6 +47,7 @@ static void model_f3x_init(device_t cpu)
 static struct device_operations cpu_dev_ops = {
        .init = model_f3x_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x0f34 }, /* Xeon */
        { 0, 0 },
index d6acddee09e4112c2b697c9f481cafef71fcbacb..e2ab022ebde0999d5e4c708d496d579700e4e835 100644 (file)
@@ -1,6 +1,5 @@
 #include <console/console.h>
 #include <device/device.h>
-#include <device/device.h>
 #include <device/pci.h>
 #include <string.h>
 #include <cpu/cpu.h>
@@ -10,7 +9,6 @@
 #include <cpu/intel/microcode.h>
 #include <cpu/intel/hyperthreading.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 static uint32_t microcode_updates[] = {
        /* WARNING - Intel has a new data structure that has variable length
@@ -26,7 +24,6 @@ static uint32_t microcode_updates[] = {
         0x0, 0x0, 0x0, 0x0,
 };
 
-
 static void model_f4x_init(device_t cpu)
 {
        /* Turn on caching if we haven't already */
@@ -47,6 +44,7 @@ static void model_f4x_init(device_t cpu)
 static struct device_operations cpu_dev_ops = {
        .init = model_f4x_init,
 };
+
 static struct cpu_device_id cpu_table[] = {
        { X86_VENDOR_INTEL, 0x0f41 }, /* Xeon */
        { 0, 0 },
index 291e4afef9fd8eced2c0aa3f5fcec083c8359f13..2fd2be405636fa5a8db01ad8240680b18da9bb55 100644 (file)
@@ -25,7 +25,6 @@
 #include <cpu/x86/msr.h>
 #include <cpu/x86/lapic.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 static void model_c3_init(device_t dev)
 {
index 5474b8d6c788766697683592b12f16de61cef778..68b5ed04514a23bc8f38f675e3026ff4dcc5d5e7 100644 (file)
 #include <console/console.h>
 #include <delay.h>
 #include <stdlib.h>
-
 #include <cpu/cpu.h>
 #include <cpu/x86/mtrr.h>
 #include <cpu/x86/msr.h>
 #include <cpu/x86/lapic.h>
 #include <cpu/x86/cache.h>
-#include <cpu/x86/mtrr.h>
 
 #define MSR_IA32_PERF_STATUS   0x00000198
 #define MSR_IA32_PERF_CTL      0x00000199