aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/cpu_mcf.h
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.ibm.com>2018-08-06 17:43:07 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-02-22 09:19:47 +0100
commit3d33345aa3d9ab2ee9b5a5bf2a8842c43603d537 (patch)
tree72ec596cfd321286b9c714d488fc9b18123feb9a /arch/s390/include/asm/cpu_mcf.h
parents390/cpum_cf: move counter set controls to a new header file (diff)
downloadlinux-dev-3d33345aa3d9ab2ee9b5a5bf2a8842c43603d537.tar.xz
linux-dev-3d33345aa3d9ab2ee9b5a5bf2a8842c43603d537.zip
s390/cpum_cf: prepare for in-kernel counter measurements
Prepare the counter facility support to be used by other in-kernel users. The first step introduces the __kernel_cpumcf_begin() and __kernel_cpumcf_end() functions to reserve the counter facility for doing measurements and to release after the measurements are done. Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/cpu_mcf.h')
-rw-r--r--arch/s390/include/asm/cpu_mcf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/cpu_mcf.h b/arch/s390/include/asm/cpu_mcf.h
index b6e73fbf87d0..63fa74115cba 100644
--- a/arch/s390/include/asm/cpu_mcf.h
+++ b/arch/s390/include/asm/cpu_mcf.h
@@ -49,4 +49,7 @@ static inline void ctr_set_stop(u64 *state, int ctr_set)
*state &= ~(cpumf_ctr_ctl[ctr_set] << CPUMF_LCCTL_ACTCTL_SHIFT);
}
+int __kernel_cpumcf_begin(void);
+void __kernel_cpumcf_end(void);
+
#endif /* _ASM_S390_CPU_MCF_H */