]> git.baikalelectronics.ru Git - kernel.git/commit
s390/perf: Change CPUM_CF return code in event init function
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 29 Oct 2018 08:11:33 +0000 (08:11 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 8 Nov 2018 06:58:16 +0000 (07:58 +0100)
commitf4618d6d951650791fcfb13e1e8da55a38f013df
treef855d6a8d8d347a2337a718f837638810b5bbca1
parent9281f86bde8fe4b57ac4f7a391158fd5ed05c33f
s390/perf: Change CPUM_CF return code in event init function

The function perf_init_event() creates a new event and
assignes it to a PMU. This a done in a loop over all existing
PMUs. For each listed PMU the event init function is called
and if this function does return any other error than -ENOENT,
the loop is terminated the creation of the event fails.

If the event is invalid, return -ENOENT to try other PMUs.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_cf.c