diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-03-11 15:55:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:59 -0400 |
commit | e129cb490e842753b43af7aae136935fc0928dc8 (patch) | |
tree | aa5c03fe44d3e05481842ca71c80090746b40ef5 | |
parent | c0a282c251181aa423d4831719613b8286b5b839 (diff) |
x86: move mp_bus_id_to_local to numa.c
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 1 | ||||
-rw-r--r-- | arch/x86/pci/numa.c | 2 | ||||
-rw-r--r-- | include/asm-x86/mach-numaq/mach_mpparse.h | 2 | ||||
-rw-r--r-- | include/asm-x86/mpspec.h | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 8795122db9bc..ae385b427841 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -47,7 +47,6 @@ int mp_bus_id_to_type [MAX_MP_BUSSES]; | |||
47 | #endif | 47 | #endif |
48 | DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES); | 48 | DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES); |
49 | int mp_bus_id_to_node [MAX_MP_BUSSES]; | 49 | int mp_bus_id_to_node [MAX_MP_BUSSES]; |
50 | int mp_bus_id_to_local [MAX_MP_BUSSES]; | ||
51 | int mp_bus_id_to_pci_bus [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 }; | 50 | int mp_bus_id_to_pci_bus [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 }; |
52 | static int mp_current_pci_id; | 51 | static int mp_current_pci_id; |
53 | 52 | ||
diff --git a/arch/x86/pci/numa.c b/arch/x86/pci/numa.c index 3248d3ee388f..e765558f7e1b 100644 --- a/arch/x86/pci/numa.c +++ b/arch/x86/pci/numa.c | |||
@@ -12,6 +12,8 @@ | |||
12 | #define XQUAD_PORTIO_QUAD 0x40000 /* 256k per quad. */ | 12 | #define XQUAD_PORTIO_QUAD 0x40000 /* 256k per quad. */ |
13 | 13 | ||
14 | #define BUS2QUAD(global) (mp_bus_id_to_node[global]) | 14 | #define BUS2QUAD(global) (mp_bus_id_to_node[global]) |
15 | |||
16 | int mp_bus_id_to_local[MAX_MP_BUSSES]; | ||
15 | #define BUS2LOCAL(global) (mp_bus_id_to_local[global]) | 17 | #define BUS2LOCAL(global) (mp_bus_id_to_local[global]) |
16 | 18 | ||
17 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; | 19 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; |
diff --git a/include/asm-x86/mach-numaq/mach_mpparse.h b/include/asm-x86/mach-numaq/mach_mpparse.h index cd21f289e6b7..0917b95c42ac 100644 --- a/include/asm-x86/mach-numaq/mach_mpparse.h +++ b/include/asm-x86/mach-numaq/mach_mpparse.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef __ASM_MACH_MPPARSE_H | 1 | #ifndef __ASM_MACH_MPPARSE_H |
2 | #define __ASM_MACH_MPPARSE_H | 2 | #define __ASM_MACH_MPPARSE_H |
3 | 3 | ||
4 | extern int mp_bus_id_to_local[MAX_MP_BUSSES]; | ||
5 | |||
4 | static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, | 6 | static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, |
5 | struct mpc_config_translation *translation) | 7 | struct mpc_config_translation *translation) |
6 | { | 8 | { |
diff --git a/include/asm-x86/mpspec.h b/include/asm-x86/mpspec.h index 5fa8b8bb7d00..1c52bd8711f6 100644 --- a/include/asm-x86/mpspec.h +++ b/include/asm-x86/mpspec.h | |||
@@ -7,7 +7,6 @@ | |||
7 | #include <mach_mpspec.h> | 7 | #include <mach_mpspec.h> |
8 | 8 | ||
9 | extern int mp_bus_id_to_node[MAX_MP_BUSSES]; | 9 | extern int mp_bus_id_to_node[MAX_MP_BUSSES]; |
10 | extern int mp_bus_id_to_local[MAX_MP_BUSSES]; | ||
11 | 10 | ||
12 | extern unsigned int def_to_bigsmp; | 11 | extern unsigned int def_to_bigsmp; |
13 | extern int apic_version[MAX_APICS]; | 12 | extern int apic_version[MAX_APICS]; |