aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/pci.h')
-rw-r--r--include/asm-x86/pci.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86/pci.h b/include/asm-x86/pci.h
index 6983730d86fd..c61190cb9e12 100644
--- a/include/asm-x86/pci.h
+++ b/include/asm-x86/pci.h
@@ -92,6 +92,19 @@ static inline void early_quirks(void) { }
92/* generic pci stuff */ 92/* generic pci stuff */
93#include <asm-generic/pci.h> 93#include <asm-generic/pci.h>
94 94
95#ifdef CONFIG_NUMA
96/* Returns the node based on pci bus */
97static inline int __pcibus_to_node(struct pci_bus *bus)
98{
99 struct pci_sysdata *sd = bus->sysdata;
100
101 return sd->node;
102}
95 103
104static inline cpumask_t __pcibus_to_cpumask(struct pci_bus *bus)
105{
106 return node_to_cpumask(__pcibus_to_node(bus));
107}
108#endif
96 109
97#endif 110#endif