]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/cpum_sf: Rework call to sf_disable()
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 29 Oct 2024 07:09:15 +0000 (08:09 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:20 +0000 (11:17 +0100)
commitf4d5e64c5c620fd532cc24dc39c6be767e3f8648
tree897fe87c9be1e7de9389ec077b98a23fe86144bf
parent666300dae851b435ae81157fe7bb849603ccd3dc
s390/cpum_sf: Rework call to sf_disable()

Setup_pmc_cpu() function body consists of one single switch
statement with two cases PMC_INIT and PMC_RELEASE.
In both of these cases sf_disable() is invoked to turn off the
CPU Measurement sampling facility.
Move sf_disable() out of the switch statement.
No functional change.

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