瀏覽代碼

x86: move mp_ioapic_routing to mpparse and make it static

mpparse is the only user of mp_ioapic_routing.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Thomas Gleixner 17 年之前
父節點
當前提交
7f028bc0fd
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 0 2
      arch/x86/kernel/acpi/boot.c
  2. 2 2
      arch/x86/kernel/mpparse.c

+ 0 - 2
arch/x86/kernel/acpi/boot.c

@@ -331,8 +331,6 @@ acpi_parse_lapic_nmi(struct acpi_subtable_header * header, const unsigned long e
 
 
 #ifdef CONFIG_X86_IO_APIC
 #ifdef CONFIG_X86_IO_APIC
 
 
-struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
-
 static int __init
 static int __init
 acpi_parse_ioapic(struct acpi_subtable_header * header, const unsigned long end)
 acpi_parse_ioapic(struct acpi_subtable_header * header, const unsigned long end)
 {
 {

+ 2 - 2
arch/x86/kernel/mpparse.c

@@ -1,5 +1,5 @@
 /*
 /*
- *	Intel Multiprocessor Specification 1.1 and 1.4
+2 *	Intel Multiprocessor Specification 1.1 and 1.4
  *	compliant MP-table parsing routines.
  *	compliant MP-table parsing routines.
  *
  *
  *	(c) 1995 Alan Cox, Building #3 <alan@redhat.com>
  *	(c) 1995 Alan Cox, Building #3 <alan@redhat.com>
@@ -805,7 +805,7 @@ int es7000_plat;
 
 
 #define MP_ISA_BUS		0
 #define MP_ISA_BUS		0
 
 
-extern struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
+static struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
 
 
 static int mp_find_ioapic(int gsi)
 static int mp_find_ioapic(int gsi)
 {
 {