diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-02-03 13:45:08 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-16 16:30:15 +0300 |
commit | 918c7cad66509c2170e38a088550fb4a525e0878 (patch) | |
tree | 5a8cc80c61382b65d2499b8462e6c897602feb17 /arch/s390/include/asm/fpu-types.h | |
parent | 3a5866a001e83e1aa143fc0aeba0248247483962 (diff) | |
download | linux-918c7cad66509c2170e38a088550fb4a525e0878.tar.xz |
s390/fpu: convert __kernel_fpu_begin()/__kernel_fpu_end() to C
Convert the rather large __kernel_fpu_begin()/__kernel_fpu_end() inline
assemblies to C. The C variant is much more readable, and this also allows
to get rid of the non-obvious usage of KERNEL_VXR_* constants within the
inline assemblies. E.g. "tmll %[m],6" correlates with the two bits set in
KERNEL_VXR_LOW. If the corresponding defines would be changed, the inline
assembles would break in a subtle way.
Therefore convert to C, use the proper defines, and allow the compiler to
generate code using the (hopefully) most efficient instructions.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/fpu-types.h')
-rw-r--r-- | arch/s390/include/asm/fpu-types.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/s390/include/asm/fpu-types.h b/arch/s390/include/asm/fpu-types.h index 1caaf31209fc..743858dbc7fb 100644 --- a/arch/s390/include/asm/fpu-types.h +++ b/arch/s390/include/asm/fpu-types.h @@ -22,11 +22,6 @@ struct fpu { }; }; -/* VX array structure for address operand constraints in inline assemblies */ -struct vx_array { - __vector128 _[__NUM_VXRS]; -}; - /* In-kernel FPU state structure */ struct kernel_fpu { u32 mask; |