aboutsummaryrefslogtreecommitdiff
path: root/libutil/op_cpufreq.h
blob: 0a711729944bb0288b20ab0abcfa522ec9bd8ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 * @file op_cpufreq.h
 * get cpu frequency declaration
 *
 * @remark Copyright 2003 OProfile authors
 * @remark Read the file COPYING
 *
 * @author John Levon
 * @author Philippe Elie
 */

#ifndef OP_CPUFREQ_H
#define OP_CPUFREQ_H

#if defined(__cplusplus)
extern "C" {
#endif

/*
 * return the estimated cpu frequency in Mhz through
 * parsing /proc/cpuinfo, return 0 if this information
 * is not avalaible e.g. sparc64 with a non SMP kernel
 */
double op_cpu_frequency(void);

#if defined(__cplusplus)
}
#endif

#endif /* !OP_CPUFREQ_H */