s390/ctlreg: allow to call system_ctl_set/clear_bit() early
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 11 Sep 2023 19:40:06 +0000 (21:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Sep 2023 11:26:56 +0000 (13:26 +0200)
commitcce2c8606f8ed3b0285842f4ad21e906d511dba1
treec03fec44da02d4b2500e457e022e38502acbc994
parentd11d5c8c8426a4abdcb2252999f1b57e3aa79e5b
s390/ctlreg: allow to call system_ctl_set/clear_bit() early

Allow to call system_ctl_set_bit() and system_clt_clear_bit() early, so
that users do not have to take care when the control register save area
has been initialized. Users are supposed to use system_ctl_set_bit() and
system:clt_clear_bit() for all control register changes which are supposed
to be seen globally.

Depending on the system state such calls will change:

- local control register contents
- save area and local control register contents
- save area and global control register contents

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/kernel/ctlreg.c