x86/xen: resume timer irqs early
[linux/fpc-iii.git] / tools / perf / arch / x86 / util / tsc.h
bloba24dec81c7959462c8d52ae630709b8da31924dc
1 #ifndef TOOLS_PERF_ARCH_X86_UTIL_TSC_H__
2 #define TOOLS_PERF_ARCH_X86_UTIL_TSC_H__
4 #include "../../util/types.h"
6 struct perf_tsc_conversion {
7 u16 time_shift;
8 u32 time_mult;
9 u64 time_zero;
12 struct perf_event_mmap_page;
14 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
15 struct perf_tsc_conversion *tc);
17 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
18 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
20 #endif /* TOOLS_PERF_ARCH_X86_UTIL_TSC_H__ */