[PATCH] powerpc: Allow devices to register with numa topology
commit953039c8df7beb2694814e20e2707a77d335a2e3
authorJeremy Kerr <jk@ozlabs.org>
Mon, 1 May 2006 19:16:12 +0000 (1 12:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:46 +0000 (1 18:17 -0700)
tree8e8d6af92441d70074efc24f55cf5965ae28447a
parentbed120c64eb07b6838bb758109811484af8cebba
[PATCH] powerpc: Allow devices to register with numa topology

Change of_node_to_nid() to traverse the device tree, looking for a numa id.
Cell uses this to assign ids to SPUs, which are children of the CPU node.
Existing users of of_node_to_nid() are altered to use of_node_to_nid_single(),
which doesn't do the traversal.

Export an attach_sysdev_to_node() function, allowing system devices (eg.
SPUs) to link themselves into the numa topology in sysfs.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/sysfs.c
arch/powerpc/mm/numa.c
include/asm-powerpc/topology.h