David Sharp | 8cbd9cc | 2012-11-13 12:18:21 -0800 | [diff] [blame] | 1 | #ifndef _ASM_X86_TRACE_CLOCK_H |
| 2 | #define _ASM_X86_TRACE_CLOCK_H |
| 3 | |
| 4 | #include <linux/compiler.h> |
| 5 | #include <linux/types.h> |
| 6 | |
| 7 | #ifdef CONFIG_X86_TSC |
| 8 | |
| 9 | extern u64 notrace trace_clock_x86_tsc(void); |
| 10 | |
| 11 | # define ARCH_TRACE_CLOCKS \ |
David Sharp | 8be0709 | 2012-11-13 12:18:22 -0800 | [diff] [blame] | 12 | { trace_clock_x86_tsc, "x86-tsc", .in_ns = 0 }, |
David Sharp | 8cbd9cc | 2012-11-13 12:18:21 -0800 | [diff] [blame] | 13 | |
| 14 | #else /* !CONFIG_X86_TSC */ |
| 15 | |
| 16 | #define ARCH_TRACE_CLOCKS |
| 17 | |
| 18 | #endif |
| 19 | |
| 20 | #endif /* _ASM_X86_TRACE_CLOCK_H */ |