Skip to content

Commit

Permalink
x86, apic: fix build fallout of genapic changes
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Ingo Molnar committed Feb 17, 2009
1 parent c1eeb2d commit 7d01d32
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/mcheck/p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/genapic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/kernel/probe_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/oprofile/op_model_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/oprofile/op_model_ppro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 7d01d32

Please sign in to comment.