summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/perf_cpum_cf.c
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2023-01-24 12:20:52 +0100
committerHeiko Carstens <hca@linux.ibm.com>2023-01-25 20:51:10 +0100
commit7a8f09ac1850b17ca0cc9e1e4d6621a64661347e (patch)
treecb76bcfa838ff2d27934598c2f4e4df1e20914e3 /arch/s390/kernel/perf_cpum_cf.c
parent345d2a4dcdb7d0f33ebd990a19aeb3f3f458817d (diff)
downloadlinux-stable-7a8f09ac1850b17ca0cc9e1e4d6621a64661347e.tar.gz
linux-stable-7a8f09ac1850b17ca0cc9e1e4d6621a64661347e.tar.bz2
linux-stable-7a8f09ac1850b17ca0cc9e1e4d6621a64661347e.zip
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/perf_cpum_cf.c')
-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)
{