diff options
-rw-r--r-- | arch/x86/include/asm/topology.h | 1 | ||||
-rw-r--r-- | arch/x86/pci/bus_numa.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index d35f24e231cd..09046a1a6c35 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -131,6 +131,7 @@ static inline void arch_fix_phys_package_id(int num, u32 slot) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | struct pci_bus; | 133 | struct pci_bus; |
134 | int x86_pci_root_bus_node(int bus); | ||
134 | void x86_pci_root_bus_resources(int bus, struct list_head *resources); | 135 | void x86_pci_root_bus_resources(int bus, struct list_head *resources); |
135 | 136 | ||
136 | #ifdef CONFIG_SMP | 137 | #ifdef CONFIG_SMP |
diff --git a/arch/x86/pci/bus_numa.c b/arch/x86/pci/bus_numa.c index c2735feb2508..2e36a4469549 100644 --- a/arch/x86/pci/bus_numa.c +++ b/arch/x86/pci/bus_numa.c | |||
@@ -20,6 +20,16 @@ static struct pci_root_info *x86_find_pci_root_info(int bus) | |||
20 | return NULL; | 20 | return NULL; |
21 | } | 21 | } |
22 | 22 | ||
23 | int x86_pci_root_bus_node(int bus) | ||
24 | { | ||
25 | struct pci_root_info *info = x86_find_pci_root_info(bus); | ||
26 | |||
27 | if (!info) | ||
28 | return NUMA_NO_NODE; | ||
29 | |||
30 | return info->node; | ||
31 | } | ||
32 | |||
23 | void x86_pci_root_bus_resources(int bus, struct list_head *resources) | 33 | void x86_pci_root_bus_resources(int bus, struct list_head *resources) |
24 | { | 34 | { |
25 | struct pci_root_info *info = x86_find_pci_root_info(bus); | 35 | struct pci_root_info *info = x86_find_pci_root_info(bus); |