]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
x86, apic: fix build fallout of genapic changes
authorIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 11:33:20 +0000 (12:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 12:13:25 +0000 (13:13 +0100)
- make oprofile build
- select X86_X2APIC from X86_UV - it relies on it
- export genapic for oprofile modular build

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig
arch/x86/kernel/cpu/mcheck/p4.c
arch/x86/kernel/genapic_64.c
arch/x86/kernel/probe_32.c
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_model_p4.c
arch/x86/oprofile/op_model_ppro.c

index bce241fe1d2de169450ddb3efdd6434bbc92f71f..8955262caa34e56c5704d56ba2d4c758283bc0c7 100644 (file)
@@ -316,6 +316,7 @@ config X86_UV
        bool "SGI Ultraviolet"
        depends on X86_64
        depends on X86_EXTENDED_PLATFORM
+       select X86_X2APIC
        ---help---
          This option is needed in order to support SGI Ultraviolet systems.
          If you don't have one of these, you should say N here.
index 9b60fce09f758d5af0520bccb61445a99aaad693..f9c92b66dfbe7120db466fe8918dee8f3246aea4 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/processor.h>
 #include <asm/system.h>
 #include <asm/msr.h>
-#include <asm/apic.h>
+#include <asm/genapic.h>
 
 #include <asm/therm_throt.h>
 
index 70b616b4c6295bc14cead569ea28df054022ab9c..ef7886353240f484edea7d674c68d931628d4ad0 100644 (file)
@@ -30,6 +30,7 @@ extern struct genapic apic_x2apic_phys;
 extern struct genapic apic_x2apic_cluster;
 
 struct genapic __read_mostly *apic = &apic_flat;
+EXPORT_SYMBOL_GPL(apic);
 
 static struct genapic *apic_probe[] __initdata = {
 #ifdef CONFIG_X86_UV
index 1f701caa95bcc92b3a07505040c0c46bfa26796e..6e31b17d546d59ce93e71e6bfbb5fd5c5ecebb9b 100644 (file)
@@ -8,6 +8,7 @@
  */
 #include <linux/threads.h>
 #include <linux/cpumask.h>
+#include <linux/module.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/ctype.h>
@@ -143,6 +144,7 @@ extern struct genapic apic_es7000;
 extern struct genapic apic_default;
 
 struct genapic *apic = &apic_default;
+EXPORT_SYMBOL_GPL(apic);
 
 static struct genapic *apic_probe[] __initdata = {
 #ifdef CONFIG_X86_NUMAQ
index 202864ad49a7e5bf2a6574922d7cd938dd023fd9..a32a5c7a8ef62364e3b14c153207cbf85b2f69e6 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/cpu.h>
 #include <asm/nmi.h>
 #include <asm/msr.h>
-#include <asm/apic.h>
+#include <asm/genapic.h>
 
 #include "op_counter.h"
 #include "op_x86_model.h"
index 4c4a51c90bc26f31cfc192adf2fb341ba7fcc754..09a237bc9ef66847a1909d70a331bde1ec67a3e5 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/nmi.h>
 #include <asm/msr.h>
 #include <asm/fixmap.h>
-#include <asm/apic.h>
+#include <asm/genapic.h>
 
 
 #include "op_x86_model.h"
index e9f80c744cf3409d72f77dd9044ec1dd90534609..5ebd8f605d765a1fbe3afca0035756b98f1d5da9 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/slab.h>
 #include <asm/ptrace.h>
 #include <asm/msr.h>
-#include <asm/apic.h>
+#include <asm/genapic.h>
 #include <asm/nmi.h>
 #include <asm/intel_arch_perfmon.h>