s390/cpum_cf: move stccm_avail()
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 24 Jan 2023 11:20:52 +0000 (12:20 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 25 Jan 2023 19:51:10 +0000 (20:51 +0100)
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>
arch/s390/include/asm/cpu_mcf.h
arch/s390/kernel/perf_cpum_cf.c

index 387e169597b065763c5162f545646c49bb8a054d..4b29c31c0e04356d9067975a34576b4ea4936416 100644 (file)
@@ -99,12 +99,6 @@ static inline void kernel_cpumcf_end(void)
        preempt_enable();
 }
 
-/* Return true if store counter set multiple instruction is available */
-static inline int stccm_avail(void)
-{
-       return test_facility(142);
-}
-
 int cfset_online_cpu(unsigned int cpu);
 int cfset_offline_cpu(unsigned int cpu);
 #endif /* _ASM_S390_CPU_MCF_H */
index 936eda2e5c05cde52c8dd481d44e6c018cc36057..7299f7f0b32588cd020f69d54832f61659bb8615 100644 (file)
@@ -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)
 {