• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * @file op_cpufreq.h
3  * get cpu frequency declaration
4  *
5  * @remark Copyright 2003 OProfile authors
6  * @remark Read the file COPYING
7  *
8  * @author John Levon
9  * @author Philippe Elie
10  */
11 
12 #ifndef OP_CPUFREQ_H
13 #define OP_CPUFREQ_H
14 
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18 
19 /*
20  * return the estimated cpu frequency in Mhz through
21  * parsing /proc/cpuinfo, return 0 if this information
22  * is not avalaible e.g. sparc64 with a non SMP kernel
23  */
24 double op_cpu_frequency(void);
25 
26 #if defined(__cplusplus)
27 }
28 #endif
29 
30 #endif /* !OP_CPUFREQ_H */
31