summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/pai.h
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2022-10-20 11:52:24 +0300
committerVasily Gorbik <gor@linux.ibm.com>2022-10-26 15:46:51 +0300
commit4c78796301700bb9de82fce34c33adb1699b0ed9 (patch)
treec1e0944b40ecc2dad083135ef46903456f87b1d4 /arch/s390/include/asm/pai.h
parent55af33fdec50a9a88f0dc0f8b898db7399e32645 (diff)
downloadlinux-4c78796301700bb9de82fce34c33adb1699b0ed9.tar.xz
s390/pai: move enum definition to header file
Move enum definition to header file. This is done in preparation for a follow on patch where this enum will be used in another source file. Also change the enum name from paiext_mode to paievt_mode to indicate this enum is now used for several events. Make naming consistent and rename PAI_MODE_COUNTER to PAI_MODE_COUNTING. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/pai.h')
-rw-r--r--arch/s390/include/asm/pai.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pai.h b/arch/s390/include/asm/pai.h
index 1a8a6b15d121..7d1888e3dee6 100644
--- a/arch/s390/include/asm/pai.h
+++ b/arch/s390/include/asm/pai.h
@@ -75,4 +75,10 @@ static __always_inline void pai_kernel_exit(struct pt_regs *regs)
WRITE_ONCE(S390_lowcore.ccd, S390_lowcore.ccd & ~PAI_CRYPTO_KERNEL_OFFSET);
}
+enum paievt_mode {
+ PAI_MODE_NONE,
+ PAI_MODE_SAMPLING,
+ PAI_MODE_COUNTING,
+};
+
#endif