linux/arch/s390/kernel
Mete Durlu bb06e5a2a0 s390/topology: Switch to common cpu capacity code
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 6bceea7a1e ("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 <meted@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2026-08-31 16:25:39 +02:00
..
diag s390/diag324: Preserve -EBUSY return code 2026-08-31 16:25:39 +02:00
syscalls arch: hookup fchroot() system call 2026-07-27 17:18:00 +02:00
vdso s390 updates for 7.3 merge window 2026-08-23 10:26:44 -07:00
.gitignore
abs_lowcore.c s390/lowcore: Convert relocated lowcore alternative to machine feature 2025-03-04 17:18:05 +01:00
alternative.c kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
asm-offsets.c s390/idle: Provide arch specific kcpustat_field_idle()/kcpustat_field_iowait() 2026-06-15 16:33:40 +02:00
audit.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
bpf.c s390: Introduce bpf_get_lowcore() kfunc 2026-03-03 08:35:07 -08:00
cache.c
cert_store.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cpacf.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
cpcmd.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
cpufeature.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
crash_dump.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
ctlreg.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
debug.c s390/debug: Fix deadlock during unregister 2026-08-13 16:56:45 +02:00
dis.c s390/fault: Print unmodified PSW address on protection exception 2025-11-14 11:34:28 +01:00
dumpstack.c s390/fault: Print unmodified PSW address on protection exception 2025-11-14 11:34:28 +01:00
early_printk.c
early.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
ebcdic.c
entry.h s390/syscalls: Use define instead of '1' to indicate PER trap 2026-07-30 00:29:08 +02:00
entry.S s390/syscalls: Use define instead of '1' to indicate PER trap 2026-07-30 00:29:08 +02:00
facility.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
fpu.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
ftrace.c s390 updates for 6.15 merge window 2025-03-29 11:59:43 -07:00
ftrace.h
guarded_storage.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
head.S s390: Rename head64.S to head.S 2025-11-25 15:28:07 +01:00
hiperdispatch.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
idle.c s390/tick: Remove CIF_NOHZ_DELAY flag 2026-07-08 17:03:28 +02:00
ipl_vmparm.c
ipl.c s390/ipl: Fix NULL deref in dump_reipl without re-IPL parm block 2026-08-31 16:25:38 +02:00
irq.c s390/tick: Remove CIF_NOHZ_DELAY flag 2026-07-08 17:03:28 +02:00
irqflags.c s390/irqflags: Add out-of-line definitions of arch_local_irq_*() for KMSAN 2026-08-11 16:42:18 +02:00
jump_label.c
kdebugfs.c
kexec_elf.c s390: kexec: initialize kexec_buf struct 2025-09-03 17:10:37 -07:00
kexec_image.c s390: kexec: initialize kexec_buf struct 2025-09-03 17:10:37 -07:00
kprobes.c s390/cpufeature: Convert MACHINE_HAS_SEQ_INSN to cpu_has_seq_insn() 2025-03-04 17:18:04 +01:00
lgr.c
machine_kexec_file.c module: Give MODULE_SIG_STRING a more descriptive name 2026-03-24 21:42:37 +00:00
machine_kexec_reloc.c
machine_kexec.c s390: Convert MACHINE_IS_[LPAR|VM|KVM], etc, machine_is_[lpar|vm|kvm]() 2025-03-04 17:18:07 +01:00
Makefile s390: Enable CONTEXT_ANALYSIS for various directories 2026-08-11 16:42:18 +02:00
mcount.S s390: Add ftrace_stub_graph 2026-08-05 15:16:54 +02:00
module.c s390: Add stackprotector support 2025-11-24 11:45:21 +01:00
nmi.c KVM: s390: Fix memory corruption by not reinjecting CK machine checks 2026-08-11 10:45:56 +02:00
nospec-branch.c
nospec-sysfs.c
numa.c
os_info.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
perf_cpum_cf_events.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
perf_cpum_cf.c s390 updates for 7.3 merge window 2026-08-23 10:26:44 -07:00
perf_cpum_sf.c s390/cpum_sf: Cap sampling rate to prevent lsctl exception 2026-03-24 20:57:31 +01:00
perf_event.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
perf_pai.c s390/pai: Reduce excessive debug feature size 2026-08-31 16:25:39 +02:00
perf_regs.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
process.c s390/process: Fix kernel thread function pointer type 2026-06-11 17:45:35 +02:00
processor.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
ptrace.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
reipl.S
relocate_kernel.S
rethook.c
rethook.h
runtime_instr.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
setup.c mm, arch: consolidate hugetlb CMA reservation 2026-01-26 20:02:19 -08:00
signal.c s390/vdso: Rename vdso64 to vdso 2025-11-25 15:28:07 +01:00
skey.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
smp.c s390/topology: Switch to common cpu capacity code 2026-08-31 16:25:39 +02:00
stackprotector.c kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
stacktrace.c s390/stacktrace: Do not fallback to RA register 2025-12-14 11:03:58 +01:00
sthyi.c s390: Fix double word in comments 2025-11-06 14:17:27 +01:00
syscall.c s390 updates for 7.3 merge window 2026-08-23 10:26:44 -07:00
sysinfo.c s390/sysinfo: Add context analysis attributes 2026-08-11 16:42:18 +02:00
text_amode31.S s390/diag: Generate CFI type information for assembly functions 2026-08-05 15:16:54 +02:00
time.c s390/ptff: Export ptff_function_mask[] 2026-07-23 07:02:34 -07:00
topology.c s390/topology: Switch to common cpu capacity code 2026-08-31 16:25:39 +02:00
trace_clock.c s390/tracing: Add s390-tod clock 2026-05-26 08:15:41 +02:00
trace.c
traps.c s390/traps: Remove PIF_GUEST_FAULT 2026-07-30 00:29:08 +02:00
unwind_bc.c s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
uprobes.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
uv.c KVM: s390: Remove cond_resched() calls 2026-08-05 15:16:54 +02:00
vdso.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmcore_info.c
vmlinux.lds.S s390/debug: Add s390dbf kernel parameter 2026-05-11 16:42:31 +02:00
vtime.c s390/time: Use jiffies instead of jiffies_64 2026-08-31 16:25:37 +02:00
wti.c