s390/cpum_cf: simplify hw_perf_event_destroy()
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 24 Jan 2023 11:20:50 +0000 (12:20 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 25 Jan 2023 19:51:09 +0000 (20:51 +0100)
commit1ce357cb825f184519cf1d3c2b01581a0b97663c
treec3190e3d119ab556633f5be843f014969ac508e6
parent7a725b770271deba6c288d075abc8dc9d5aa61d0
s390/cpum_cf: simplify hw_perf_event_destroy()

To remove an event from the CPU Measurement counter facility
use the lock/unlock scheme as done in event creation. Remove
the atomic_add_unless function to make the code easier.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_cpum_cf.c