diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-02-03 11:45:01 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-16 14:30:14 +0100 |
commit | 31d3ec15dc95ad73ea403892840624465d377fd9 (patch) | |
tree | 1ce8a441f11a58736379edccadc7dbf329001967 /arch/s390/kernel/fpu.c | |
parent | b6b842becd734301349b2fbe8d31099ea3d22a0f (diff) |
s390/fpu: various coding style changes
Address various checkpatch warnings, adjust whitespace, and try to increase
readability. This is just preparation, in order to avoid that subsequent
patches contain any distracting drive-by coding style changes.
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/fpu.c')
-rw-r--r-- | arch/s390/kernel/fpu.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/arch/s390/kernel/fpu.c b/arch/s390/kernel/fpu.c index 21c9885cfb21..d8e18a74b93d 100644 --- a/arch/s390/kernel/fpu.c +++ b/arch/s390/kernel/fpu.c @@ -16,14 +16,13 @@ void __kernel_fpu_begin(struct kernel_fpu *state, u32 flags) { /* * Limit the save to the FPU/vector registers already - * in use by the previous context + * in use by the previous context. */ flags &= state->mask; - - if (flags & KERNEL_FPC) + if (flags & KERNEL_FPC) { /* Save floating point control */ asm volatile("stfpc %0" : "=Q" (state->fpc)); - + } if (!cpu_has_vx()) { if (flags & KERNEL_VXR_LOW) { /* Save floating-point registers */ @@ -46,7 +45,6 @@ void __kernel_fpu_begin(struct kernel_fpu *state, u32 flags) } return; } - /* Test and save vector registers */ asm volatile ( /* @@ -97,15 +95,14 @@ void __kernel_fpu_end(struct kernel_fpu *state, u32 flags) { /* * Limit the restore to the FPU/vector registers of the - * previous context that have been overwritte by the - * current context + * previous context that have been overwritten by the + * current context. */ flags &= state->mask; - - if (flags & KERNEL_FPC) + if (flags & KERNEL_FPC) { /* Restore floating-point controls */ asm volatile("lfpc %0" : : "Q" (state->fpc)); - + } if (!cpu_has_vx()) { if (flags & KERNEL_VXR_LOW) { /* Restore floating-point registers */ @@ -128,7 +125,6 @@ void __kernel_fpu_end(struct kernel_fpu *state, u32 flags) } return; } - /* Test and restore (load) vector registers */ asm volatile ( /* |