s390/ctltreg: make initialization of control register save area explicit
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 11 Sep 2023 19:40:05 +0000 (21:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Sep 2023 11:26:56 +0000 (13:26 +0200)
commitd11d5c8c8426a4abdcb2252999f1b57e3aa79e5b
tree8d4a4e3f67f7d975c63f34df473bfa1af8f286e8
parent527618abb92793b9d4dba548d55822dcebd95317
s390/ctltreg: make initialization of control register save area explicit

Commit e1b9c2749af0 ("s390/smp: ensure global control register contents
are in sync") made the control register save area contained within the
lowcore at absolute address zero a resource which is used when
initializing CPUs. However this is anything but obvious from the code.

Add an ctlreg_init_save_area() function in order to make this explicit.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/ctlreg.h
arch/s390/kernel/ctlreg.c
arch/s390/kernel/setup.c