commit | 357518fa34d9dceda42bfc09642356a58370050d | [log] [tgz] |
---|---|---|
author | Anton Blanchard <anton@samba.org> | Sat Jun 10 20:53:06 2006 +1000 |
committer | Paul Mackerras <paulus@samba.org> | Thu Jun 15 19:31:26 2006 +1000 |
tree | c75689198fa2667a3d73d89ff125d910061b4fcf | |
parent | f2b09c8189bc7b64a42753e98f7006b11bae1bdc [diff] |
[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>