s390/pai_crypto: use PERF_ATTACH_TASK define for per task detection
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 10 Oct 2023 14:14:22 +0000 (16:14 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 25 Oct 2023 13:08:29 +0000 (15:08 +0200)
commita13e8bdf0f788552aa37e1f9a6fe5fcca4095d2b
tree84d8a96c742d7503975b94195eb34d0757bef979
parent1954da4a2b621a3328a63382cae7e5f5e2af502c
s390/pai_crypto: use PERF_ATTACH_TASK define for per task detection

Use define PERF_ATTACH_TASK bit in event->attach_state to determine
system wide invocation or per task invocation in event initialization.
This bit is set in common code and before calling PMU device driver
specific event initialization.
It is set once and never changes. It is save to use and also in
sync with other PMU specific code.
No functional change.

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