]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/cpum_sf: Set bit PMU_F_ENABLED enabled after lpp() invocation
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 7 Oct 2024 05:45:16 +0000 (07:45 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 10 Oct 2024 13:32:43 +0000 (15:32 +0200)
commit31d1d8a35eeb9cd2a2ecd840304a6935e461c500
tree8c040530c51f54180922f381ffd7eed7e3b38914
parent25f39d3dcb48bbc824a77d16b3d977f0f3713cfe
s390/cpum_sf: Set bit PMU_F_ENABLED enabled after lpp() invocation

Set PMU enabled bit after lpp() call. This ensures the proper
task PID is loaded by the llp instruction into Program Parameter
register from where it is copied to each sampling data buffer
(SDB) sample entry after the sampling was enabled.

The barrier() instruction is not needed as cpumsf_pmu_enable()
changes a CPU specific variable. Only the CPU that task is
running on changes structure members.

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