[POWERPC] cell: add support for registering sysfs attributes to spus
authorChristian Krafft <krafft@de.ibm.com>
Tue, 24 Oct 2006 16:31:23 +0000 (18:31 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 25 Oct 2006 04:20:21 +0000 (14:20 +1000)
commite570beb6bb1a623849901efbf939063ec4775c9e
tree9d6766eb2ca71393bf16f0aec0cbf726282dea6e
parentd8bf96e0793f9576da545bac333b2de304958d68
[POWERPC] cell: add support for registering sysfs attributes to spus

In order to add sysfs attributes to all spu's, there is a
need for a list of all available spu's. Adding the device_node
makes also sense, as it is needed for proper register access.
This patch also adds two functions to create and remove sysfs
attributes and attribute_groups to all spus.
That allows to group spu attributes in a subdirectory like:
/sys/devices/system/spu/spuX/group_name/what_ever
This will be used by cbe_thermal to group all attributes dealing with
thermal support in one directory.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
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