]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/pai: change sampling event assignment for PMU device driver
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 19 Feb 2024 14:40:01 +0000 (15:40 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Mar 2024 13:41:13 +0000 (14:41 +0100)
commite22033fddd453a81185557fb77568651819bc8f1
tree2c3c80fd8d29d977ba388cee185254ac69b88dd5
parent13ff094d32e7cc42e89b7944de9354ae6efb519e
s390/pai: change sampling event assignment for PMU device driver

Currently only one PAI sampling event can be created and active
at any one time. The PMU device drivers store a pointer to this
event in their data structures even when the event is created
for counting and the PMU device driver reference to this counting
event is never needed.
Change this and assign the pointer to the PMU device driver
only when a sampling event is created.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c
arch/s390/kernel/perf_pai_ext.c