aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-04-04 15:41:57 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:35 -0400
commit31d2092eb0c23636b73d2c24c0c11b66470cef58 (patch)
treed2bc92d15ada32ae100187b702da4a21a047c758 /arch/x86/kernel
parentdfac2189c2e1fbb90ee83f15b5e404425754e9f4 (diff)
x86: move mp_register_lapic_address to boot.c
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/acpi/boot.c12
-rw-r--r--arch/x86/kernel/mpparse_32.c12
-rw-r--r--arch/x86/kernel/mpparse_64.c8
3 files changed, 11 insertions, 21 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 11bd11847b19..057ccf1d5ad4 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -765,6 +765,16 @@ static int __init acpi_parse_fadt(struct acpi_table_header *table)
765 * Parse LAPIC entries in MADT 765 * Parse LAPIC entries in MADT
766 * returns 0 on success, < 0 on error 766 * returns 0 on success, < 0 on error
767 */ 767 */
768
769static void __init acpi_register_lapic_address(unsigned long address)
770{
771 mp_lapic_addr = address;
772
773 set_fixmap_nocache(FIX_APIC_BASE, address);
774 if (boot_cpu_physical_apicid == -1U)
775 boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id());
776}
777
768static int __init acpi_parse_madt_lapic_entries(void) 778static int __init acpi_parse_madt_lapic_entries(void)
769{ 779{
770 int count; 780 int count;
@@ -786,7 +796,7 @@ static int __init acpi_parse_madt_lapic_entries(void)
786 return count; 796 return count;
787 } 797 }
788 798
789 mp_register_lapic_address(acpi_lapic_addr); 799 acpi_register_lapic_address(acpi_lapic_addr);
790 800
791 count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_SAPIC, 801 count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_SAPIC,
792 acpi_parse_sapic, MAX_APICS); 802 acpi_parse_sapic, MAX_APICS);
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c
index ebec70a14198..052043ed6499 100644
--- a/arch/x86/kernel/mpparse_32.c
+++ b/arch/x86/kernel/mpparse_32.c
@@ -785,18 +785,6 @@ void __init find_smp_config (void)
785 785
786#ifdef CONFIG_ACPI 786#ifdef CONFIG_ACPI
787 787
788void __init mp_register_lapic_address(u64 address)
789{
790 mp_lapic_addr = (unsigned long) address;
791
792 set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr);
793
794 if (boot_cpu_physical_apicid == -1U)
795 boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id());
796
797 Dprintk("Boot CPU = %d\n", boot_cpu_physical_apicid);
798}
799
800#ifdef CONFIG_X86_IO_APIC 788#ifdef CONFIG_X86_IO_APIC
801 789
802#define MP_ISA_BUS 0 790#define MP_ISA_BUS 0
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c
index 03c19a2e6e9e..1c3bf80b3ba6 100644
--- a/arch/x86/kernel/mpparse_64.c
+++ b/arch/x86/kernel/mpparse_64.c
@@ -594,14 +594,6 @@ void __init find_smp_config(void)
594 594
595#ifdef CONFIG_ACPI 595#ifdef CONFIG_ACPI
596 596
597void __init mp_register_lapic_address(u64 address)
598{
599 mp_lapic_addr = (unsigned long)address;
600 set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr);
601 if (boot_cpu_physical_apicid == -1U)
602 boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id());
603}
604
605#define MP_ISA_BUS 0 597#define MP_ISA_BUS 0
606#define MP_MAX_IOAPIC_PIN 127 598#define MP_MAX_IOAPIC_PIN 127
607 599