summaryrefslogtreecommitdiff
path: root/arch/s390/include
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.ibm.com>2018-08-06 18:43:07 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-02-22 11:19:47 +0300
commit3d33345aa3d9ab2ee9b5a5bf2a8842c43603d537 (patch)
tree72ec596cfd321286b9c714d488fc9b18123feb9a /arch/s390/include
parent30e145f811428e1a96738fbc1f98ccc91f412d93 (diff)
downloadlinux-3d33345aa3d9ab2ee9b5a5bf2a8842c43603d537.tar.xz
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')
-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 */