]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] pcibus_to_node fixes
authorAnton Blanchard <anton@samba.org>
Sat, 10 Jun 2006 10:53:06 +0000 (20:53 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 15 Jun 2006 09:31:26 +0000 (19:31 +1000)
commit98fa62ea18812e2657c2eb778e1e7b4d10e339a6
treec75689198fa2667a3d73d89ff125d910061b4fcf
parent7d336c63ace8822879856d59288f728dee2ec3cf
[POWERPC] pcibus_to_node fixes

of_node_to_nid returns -1 if the associativity cannot be found. This
means pcibus_to_cpumask has to be careful not to pass a negative index into
node_to_cpumask.

Since pcibus_to_node could be used a lot, and of_node_to_nid is slow (it
walks a list doing strcmps), lets also cache the node in the
pci_controller struct.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_64.c
include/asm-powerpc/pci-bridge.h
include/asm-powerpc/topology.h