diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-04-22 08:18:37 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-04-22 08:18:37 +0000 |
commit | da65fbf2082ae46b609c21d23ba39af45574be13 (patch) | |
tree | fa65430fda7bd8ed4cb62d8b9bfb8fdced2eae00 /src/northbridge/amd/amdfam10/amdfam10_acpi.c | |
parent | 7e9771cc1a02f4154cd655386219ea69578e01f0 (diff) |
Factor out acpi_create_madt_lapics. It can be used on all ACPI boards.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4168 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/amdfam10/amdfam10_acpi.c')
-rw-r--r-- | src/northbridge/amd/amdfam10/amdfam10_acpi.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/northbridge/amd/amdfam10/amdfam10_acpi.c b/src/northbridge/amd/amdfam10/amdfam10_acpi.c index 52c438e7dd..4651b17157 100644 --- a/src/northbridge/amd/amdfam10/amdfam10_acpi.c +++ b/src/northbridge/amd/amdfam10/amdfam10_acpi.c @@ -28,25 +28,6 @@ //it seems some functions can be moved arch/i386/boot/acpi.c -unsigned long acpi_create_madt_lapics(unsigned long current) -{ - device_t cpu; - int cpu_index = 0; - - for(cpu = all_devices; cpu; cpu = cpu->next) { - if ((cpu->path.type != DEVICE_PATH_APIC) || - (cpu->bus->dev->path.type != DEVICE_PATH_APIC_CLUSTER)) { - continue; - } - if (!cpu->enabled) { - continue; - } - current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, cpu_index, cpu->path.apic.apic_id); - cpu_index++; - } - return current; -} - unsigned long acpi_create_madt_lapic_nmis(unsigned long current, u16 flags, u8 lint) { device_t cpu; |