From: Christian Krafft Date: Tue, 24 Oct 2006 16:31:23 +0000 (+0200) Subject: [POWERPC] cell: add support for registering sysfs attributes to spus X-Git-Tag: v2.6.20-rc1~34^2~40^2~8^2~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e570beb6bb1a623849901efbf939063ec4775c9e;p=pandora-kernel.git [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 Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed