s390/perf: Improve PMU selection for PERF_COUNT_HW_CPU_CYCLES events
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Thu, 12 Dec 2013 15:47:00 +0000 (16:47 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:52 +0000 (14:37 +0100)
commit55baa2f831ae4a41da9617ab9e7cef5ebc991ec9
tree700ba9a81a60e1c4eaff56f57d38fd818f6de6a8
parent8c069ff4bd6063a3f15e606c882e03f75c7e7711
s390/perf: Improve PMU selection for PERF_COUNT_HW_CPU_CYCLES events

The cpum_cf (counter facility) PMU does not support sampling events.
With cpum_sf (sampling facility), a PMU for sampling CPU cycles is
available.

Make cpum_sf the "default" PMU for PERF_COUNT_HW_CPU_CYCLES sampling
events but use the more precise cpum_cf PMU for non-sampling events.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_sf.c