]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/smp: Add cpu capacities
authorMete Durlu <meted@linux.ibm.com>
Mon, 12 Aug 2024 11:39:33 +0000 (13:39 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2024 20:56:35 +0000 (22:56 +0200)
commit26ceef523d5442a8bc88e334c3e84cdbd9e3fb92
tree9f46208cd12eb617899646c3e8aa79577f47c2a3
parent7e627f819302b8c22098b0575c35a3349c4e306f
s390/smp: Add cpu capacities

Linux scheduler allows architectures to assign capacity values to
individual CPUs. This hints scheduler the performance difference between
CPUs and allows more efficient task distribution them. Implement
helper methods to set and get CPU capacities for s390. This is
particularly helpful in vertical polarization configurations of LPARs.
On vertical polarization an LPARs CPUs can get different polarization
values depending on the CEC configuration. CPUs with different
polarization values can perform different from each other, using CPU
capacities this can be reflected to linux scheduler.

Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/include/asm/smp.h
arch/s390/include/asm/topology.h
arch/s390/kernel/smp.c