summaryrefslogtreecommitdiff
path: root/drivers/s390/crypto/ap_bus.c
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2021-09-27 16:01:56 +0300
committerVasily Gorbik <gor@linux.ibm.com>2021-10-26 16:21:29 +0300
commit453380318edd523bc08bf4892d354b49cb85bb0b (patch)
treea2f7c064c8168f4bc69491fb364103d170435c12 /drivers/s390/crypto/ap_bus.c
parentff7a1eefdff5867db4a4f678deed0d04f32cad15 (diff)
downloadlinux-453380318edd523bc08bf4892d354b49cb85bb0b.tar.xz
s390/cpumf: Allow multiple processes to access /dev/hwc
Commit a029a4eab39e ("s390/cpumf: Allow concurrent access for CPU Measurement Counter Facility") added CPU Measurement counter facility access to multiple consumers. It allows concurrent access to the CPU Measurement counter facility via several perf_event_open() system call invocations and via ioctl() system call of device /dev/hwc. However the access via device /dev/hwc was exclusive, only one process was able to open this device. The patch removes this restriction. Now multiple invocations of lshwc can execute in parallel. They can access different CPUs and counter sets or CPUs and counter set can overlap. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Suggested-by: Heiko Carstens <hca@linux.ibm.com> Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/ap_bus.c')
0 files changed, 0 insertions, 0 deletions