[POWERPC] sysfs: add support for adding/removing spu sysfs attributes
authorChristian Krafft <krafft@de.ibm.com>
Tue, 24 Oct 2006 16:31:24 +0000 (18:31 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 25 Oct 2006 04:20:22 +0000 (14:20 +1000)
commit0344c6c5387ba335bba5a66fd44714b94c98573f
treeb6f3da50e29f10cf96e2fe6e98ad6aef0ae4562a
parente570beb6bb1a623849901efbf939063ec4775c9e
[POWERPC] sysfs: add support for adding/removing spu sysfs attributes

This patch adds two functions to create and remove sysfs attributes and
attribute_group to all cpus.  That allows to register sysfs attributes in
a subdirectory like: /sys/devices/system/cpu/cpuX/group_name/what_ever
This will be used by cbe_thermal to group all attributes dealing with
thermal support in one directory.

Signed-of-by: Christian Krafft <krafft@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/sysfs.c
include/linux/cpu.h