From 31d3ec15dc95ad73ea403892840624465d377fd9 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Sat, 3 Feb 2024 11:45:01 +0100 Subject: 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 Signed-off-by: Heiko Carstens --- arch/s390/kernel/fpu.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'arch/s390/kernel/fpu.c') 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 ( /* -- cgit v1.2.3-70-g09d2