Imported Upstream version 0.9.8
[platform/upstream/oprofile.git] / libutil / op_cpufreq.h
1 /**
2  * @file op_cpufreq.h
3  * get cpu frequency declaration
4  *
5  * @remark Copyright 2011 OProfile authors
6  * @remark Read the file COPYING
7  *
8  * @author John Levon
9  * @author Philippe Elie
10  * @author Suravee Suthikulpanit
11  */
12
13 #ifndef OP_CPUFREQ_H
14 #define OP_CPUFREQ_H
15
16 #if defined(__cplusplus)
17 extern "C" {
18 #endif
19
20 /*
21  * return the estimated cpu frequency in Mhz,
22  * return 0 if this information
23  * is not avalaible e.g. sparc64 with a non SMP kernel
24  */
25 double op_cpu_frequency(void);
26
27 #if defined(__cplusplus)
28 }
29 #endif
30
31 #endif /* !OP_CPUFREQ_H */