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>
This commit is contained in:
parent
c0a282c251
commit
e129cb490e
@ -47,7 +47,6 @@ int mp_bus_id_to_type [MAX_MP_BUSSES];
|
|||||||
#endif
|
#endif
|
||||||
DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES);
|
DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES);
|
||||||
int mp_bus_id_to_node [MAX_MP_BUSSES];
|
int mp_bus_id_to_node [MAX_MP_BUSSES];
|
||||||
int mp_bus_id_to_local [MAX_MP_BUSSES];
|
|
||||||
int mp_bus_id_to_pci_bus [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 };
|
int mp_bus_id_to_pci_bus [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 };
|
||||||
static int mp_current_pci_id;
|
static int mp_current_pci_id;
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
#define XQUAD_PORTIO_QUAD 0x40000 /* 256k per quad. */
|
#define XQUAD_PORTIO_QUAD 0x40000 /* 256k per quad. */
|
||||||
|
|
||||||
#define BUS2QUAD(global) (mp_bus_id_to_node[global])
|
#define BUS2QUAD(global) (mp_bus_id_to_node[global])
|
||||||
|
|
||||||
|
int mp_bus_id_to_local[MAX_MP_BUSSES];
|
||||||
#define BUS2LOCAL(global) (mp_bus_id_to_local[global])
|
#define BUS2LOCAL(global) (mp_bus_id_to_local[global])
|
||||||
|
|
||||||
int quad_local_to_mp_bus_id [NR_CPUS/4][4];
|
int quad_local_to_mp_bus_id [NR_CPUS/4][4];
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef __ASM_MACH_MPPARSE_H
|
#ifndef __ASM_MACH_MPPARSE_H
|
||||||
#define __ASM_MACH_MPPARSE_H
|
#define __ASM_MACH_MPPARSE_H
|
||||||
|
|
||||||
|
extern int mp_bus_id_to_local[MAX_MP_BUSSES];
|
||||||
|
|
||||||
static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
|
static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
|
||||||
struct mpc_config_translation *translation)
|
struct mpc_config_translation *translation)
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include <mach_mpspec.h>
|
#include <mach_mpspec.h>
|
||||||
|
|
||||||
extern int mp_bus_id_to_node[MAX_MP_BUSSES];
|
extern int mp_bus_id_to_node[MAX_MP_BUSSES];
|
||||||
extern int mp_bus_id_to_local[MAX_MP_BUSSES];
|
|
||||||
|
|
||||||
extern unsigned int def_to_bigsmp;
|
extern unsigned int def_to_bigsmp;
|
||||||
extern int apic_version[MAX_APICS];
|
extern int apic_version[MAX_APICS];
|
||||||
|
Loading…
Reference in New Issue
Block a user