s390/ctlreg: add local and system prefix to some functions
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 11 Sep 2023 19:39:58 +0000 (21:39 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Sep 2023 11:26:56 +0000 (13:26 +0200)
commit8d5e98f8d6b11dd0e61323ece3b7ccceea55c281
tree7e0ff091fc8130648550fc2dfb147df93b8960af
parenta74e4fc168d284e1e4e7296f8cf4b884035ebd45
s390/ctlreg: add local and system prefix to some functions

Add local and system prefix to some functions to clarify they change
control register contents on either the local CPU or the on all CPUs.

This results in the following API:

Two defines which load and save multiple control registers.
The defines correlate with the following C prototypes:

void __local_ctl_load(unsigned long *, unsigned int cr_low, unsigned int cr_high);
void __local_ctl_store(unsigned long *, unsigned int cr_low, unsigned int cr_high);

Two functions which locally set or clear one bit for a specified
control register:

void local_ctl_set_bit(unsigned int cr, unsigned int bit);
void local_ctl_clear_bit(unsigned int cr, unsigned int bit);

Two functions which set or clear one bit for a specified control
register on all CPUs:

void system_ctl_set_bit(unsigned int cr, unsigned int bit);
void system_ctl_clear_bit(unsigend int cr, unsigned int bit);

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
30 files changed:
arch/s390/boot/startup.c
arch/s390/boot/vmem.c
arch/s390/include/asm/ctlreg.h
arch/s390/include/asm/mmu_context.h
arch/s390/kernel/ctlreg.c
arch/s390/kernel/early.c
arch/s390/kernel/guarded_storage.c
arch/s390/kernel/ipl.c
arch/s390/kernel/irq.c
arch/s390/kernel/kprobes.c
arch/s390/kernel/machine_kexec.c
arch/s390/kernel/nmi.c
arch/s390/kernel/perf_cpum_cf.c
arch/s390/kernel/perf_pai_crypto.c
arch/s390/kernel/perf_pai_ext.c
arch/s390/kernel/ptrace.c
arch/s390/kernel/setup.c
arch/s390/kernel/smp.c
arch/s390/kernel/time.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/lib/uaccess.c
arch/s390/mm/pgalloc.c
arch/s390/mm/vmem.c
arch/s390/pci/pci.c
drivers/s390/char/sclp.c
drivers/s390/char/sclp_early_core.c
drivers/s390/cio/crw.c
drivers/s390/cio/isc.c
net/iucv/iucv.c