From: Hendrik Brueckner Date: Mon, 9 Mar 2015 16:34:18 +0000 (+0100) Subject: s390/cpum_sf: add diagnostic sampling event only if it is authorized X-Git-Tag: omap-for-v4.2/o2_dc~256^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a64815091bd0ad6c6cdfaac2fae55b0f3ecf974;p=pandora-kernel.git 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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed