]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/fpu: decrease stack usage for some cases
authorHeiko Carstens <hca@linux.ibm.com>
Sat, 3 Feb 2024 10:45:17 +0000 (11:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 16 Feb 2024 13:30:16 +0000 (14:30 +0100)
commit066c40918bb495de8f2e45bd7eec06737a142712
tree4b510a53f7616d9095336cc60e78fcc54f2275a7
parentcad8c3abaac3848f46ba9d1b21f79fab87098da2
s390/fpu: decrease stack usage for some cases

The kernel_fpu structure has a quite large size of 520 bytes. In order to
reduce stack footprint introduce several kernel fpu structures with
different and also smaller sizes. This way every kernel fpu user must use
the correct variant. A compile time check verifies that the correct variant
is used.

There are several users which use only 16 instead of all 32 vector
registers. For those users the new kernel_fpu_16 structure with a size of
only 266 bytes can be used.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/chacha-glue.c
arch/s390/crypto/crc32-vx.c
arch/s390/include/asm/fpu-types.h
arch/s390/include/asm/fpu.h
arch/s390/kernel/fpu.c
arch/s390/kernel/sysinfo.c
arch/s390/kvm/kvm-s390.c
lib/raid6/s390vx.uc