]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Cleanup initial cpu reset
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 31 Jan 2020 10:02:01 +0000 (05:02 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 31 Jan 2020 11:49:54 +0000 (12:49 +0100)
commitc3a5065a8e9f397f76d2d9b3c2d4db27a3d2e1c5
tree62739ec681c3d55fb768d0c1841939123a726a9d
parent60fdf75ddc75dd6e9db4bca0fc376a036d61e3f8
KVM: s390: Cleanup initial cpu reset

The code seems to be quite old and uses lots of unneeded spaces for
alignment, which doesn't really help with readability.

Let's:
* Get rid of the extra spaces
* Remove the ULs as they are not needed on 0s
* Define constants for the CR 0 and 14 initial values
* Use the sizeof of the gcr array to memset it to 0

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20200131100205.74720-3-frankja@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c