Re: [PATCH] s390/topology: Switch to common cpu capacity code

Heiko Carstens <[email protected]>
Newsgroups org.kernel.vger.linux-s390
Message-ID <[email protected]>
On Tue, Aug 25, 2026 at 02:58:20PM +0200, Mete Durlu wrote:
> s390 implementation of cpu capacity management infrastructure code does
> not do anything different than its common code counterpart. Switch to
> common code functions and remove the smp_cpu_*_capacity() functions.
> Make s390 code better align with other architectures which utilize
> cpu_capacity. No functional changes.
> 
> Allow cpu_capacity attributes inside sysfs to accurately reflect cpu
> capacity.
> ex:
> 
> $ cat /sys/devices/system/cpu/cpu0/polarization
> vertical:high
> $ cat /sys/devices/system/cpu/cpu0/cpu_capacity
> 1024
> 
> $ cat /sys/devices/system/cpu/cpu40/polarization
> vertical:low
> $ cat /sys/devices/system/cpu/cpu40/cpu_capacity
> 128
> 
> Prior to commit 6bceea7a1e07 ("arch_topology: Relocate cpu_scale to
> topology.[h|c]") cpu_capacity attribute was only available to the common
> arch_topology driver's users. Reflect the correct values to the newly
> made available attributes.
> 
> Signed-off-by: Mete Durlu <[email protected]>
> ---
>  arch/s390/include/asm/processor.h |  1 -
>  arch/s390/include/asm/smp.h       |  4 +---
>  arch/s390/kernel/smp.c            | 16 +++-------------
>  arch/s390/kernel/topology.c       |  2 +-
>  4 files changed, 5 insertions(+), 18 deletions(-)

Reviewed-by: Heiko Carstens <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.