[POWERPC] cell: register SPUs as sysdevs
authorJeremy Kerr <jk@ozlabs.org>
Mon, 19 Jun 2006 18:33:19 +0000 (20:33 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:29 +0000 (15:01 +1000)
commit1d64093f6627a7eef1ed0fe005463f0a5ea25a5f
treefaa57ae7e34dd45b843161c233a59a15fe6ddaf1
parent0f0f90c304b42d8ce7fc5958de894bdcff3a0ca1
[POWERPC] cell: register SPUs as sysdevs

SPUs are registered as system devices, exposing attributes through
sysfs. Since the sysdev includes a kref, we can remove the one in
struct spu (it isn't used at the moment anyway).

Currently only the interrupt source and numa node attributes are added.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spu_base.c
include/asm-powerpc/spu.h