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>
This commit is contained in:
committed by
Martin Schwidefsky
parent
061da3dfb2
commit
b9e3f776c8
@@ -392,27 +392,6 @@ static __init int create_proc_service_level(void)
|
||||
}
|
||||
subsys_initcall(create_proc_service_level);
|
||||
|
||||
/*
|
||||
* Bogomips calculation based on cpu capability.
|
||||
*/
|
||||
int get_cpu_capability(unsigned int *capability)
|
||||
{
|
||||
struct sysinfo_1_2_2 *info;
|
||||
int rc;
|
||||
|
||||
info = (void *) get_zeroed_page(GFP_KERNEL);
|
||||
if (!info)
|
||||
return -ENOMEM;
|
||||
rc = stsi(info, 1, 2, 2);
|
||||
if (rc == -ENOSYS)
|
||||
goto out;
|
||||
rc = 0;
|
||||
*capability = info->capability;
|
||||
out:
|
||||
free_page((unsigned long) info);
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* CPU capability might have changed. Therefore recalculate loops_per_jiffy.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user