]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86/x86_64: pcibus_to_node
authorChristoph Lameter <christoph@lameter.com>
Thu, 23 Jun 2005 07:08:18 +0000 (00:08 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:08 +0000 (09:45 -0700)
commitd6994b2ace444a162c1b61b802caad4b9c847015
tree89a7086ebbec9d94dc7b7b3483d3750220ba979c
parentcbaeefb745600068f70ea8a9b620a5cb01a9d8cd
[PATCH] x86/x86_64: pcibus_to_node

Define pcibus_to_node to be able to figure out which NUMA node contains a
given PCI device.  This defines pcibus_to_node(bus) in
include/linux/topology.h and adjusts the macros for i386 and x86_64 that
already provided a way to determine the cpumask of a pci device.

x86_64 was changed to not build an array of cpumasks anymore.  Instead an
array of nodes is build which can be used to generate the cpumask via
node_to_cpumask.

Signed-off-by: Christoph Lameter <christoph@lameter.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/mpparse.c
arch/x86_64/pci/k8-bus.c
include/asm-generic/topology.h
include/asm-i386/topology.h
include/asm-x86_64/topology.h