summaryrefslogtreecommitdiff
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2023-01-24 14:20:52 +0300
committerHeiko Carstens <hca@linux.ibm.com>2023-01-25 22:51:10 +0300
commit7a8f09ac1850b17ca0cc9e1e4d6621a64661347e (patch)
treecb76bcfa838ff2d27934598c2f4e4df1e20914e3 /arch/s390/kernel
parent345d2a4dcdb7d0f33ebd990a19aeb3f3f458817d (diff)
downloadlinux-7a8f09ac1850b17ca0cc9e1e4d6621a64661347e.tar.xz
s390/cpum_cf: move stccm_avail()
Function stccm_avail() is defined in a header file and the only user is one single source file. Move this function to the source file where it is also used and remove it from the header file. No functional change. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Acked-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/perf_cpum_cf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c
index 936eda2e5c05..7299f7f0b325 100644
--- a/arch/s390/kernel/perf_cpum_cf.c
+++ b/arch/s390/kernel/perf_cpum_cf.c
@@ -821,6 +821,12 @@ static struct pmu cpumf_pmu = {
.read = cpumf_pmu_read,
};
+/* Return true if store counter set multiple instruction is available */
+static inline int stccm_avail(void)
+{
+ return test_facility(142);
+}
+
static int cfset_init(void);
static int __init cpumf_pmu_init(void)
{