From: Anton Blanchard Date: Sat, 10 Jun 2006 10:53:06 +0000 (+1000) Subject: [POWERPC] pcibus_to_node fixes X-Git-Tag: v2.6.18-rc1~1081^2~225^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357518fa34d9dceda42bfc09642356a58370050d;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed