OSDN Git Service

s390/cpu: remove cpu "capabilities" sysfs attribute
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 25 May 2012 07:39:29 +0000 (09:39 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 30 May 2012 07:07:30 +0000 (09:07 +0200)
commitb9e3f776c811cc0647c7360844714b6a9b5fd0ef
treee6af8730518a4600e56b287e41d4df8a950a5181
parent061da3dfb291570e780169918933ba51c2b7d554
s390/cpu: remove cpu "capabilities" sysfs attribute

It has been a big mistage to add the capabilities attribute to the
cpus in sysfs:
First the attribute only contains the cpu capability of primary cpus,
which however is not necessarily (or better: unlikely) the type of
cpu the kernel runs on, which is typically an IFL.
In addition all information that is necessary is available in
/proc/sysinfo already. So this attribute partially duplicated
informations.
So programs should look into the sysinfo file to retrieve all
informations they are interested in.

Since with this kernel release also the powersavings cpu attributes
are removed this seems to be a good opportunity to remove another
broken interface.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/kernel/smp.c
arch/s390/kernel/sysinfo.c