]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cpum_sf: add diagnostic sampling event only if it is authorized
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Mon, 9 Mar 2015 16:34:18 +0000 (17:34 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 13 Mar 2015 11:15:44 +0000 (12:15 +0100)
commitb7ae9a4107fbbc74a0652f12cdb78249e344e252
treee9e3b7cc479cf77b9264a1a22b2668f98a0ae062
parentda0330dde90cfa1dc3150de74d93e0dbfb91774b
s390/cpum_sf: add diagnostic sampling event only if it is authorized

The SF_CYCLES_BASIC_DIAG is always registered even if it is turned of in the
current hardware configuration.  Because diagnostic-sampling is typically not
turned on in the hardware configuration, do not register this perf event by
default.  Enable it only if the diagnostic-sampling function is authorized.

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