blob: 7061a5650969ec1b6165293685180dc567a10318 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
David Sharp8cbd9cc2012-11-13 12:18:21 -08002#ifndef _ASM_X86_TRACE_CLOCK_H
3#define _ASM_X86_TRACE_CLOCK_H
4
5#include <linux/compiler.h>
6#include <linux/types.h>
7
8#ifdef CONFIG_X86_TSC
9
10extern u64 notrace trace_clock_x86_tsc(void);
11
12# define ARCH_TRACE_CLOCKS \
David Sharp8be07092012-11-13 12:18:22 -080013 { trace_clock_x86_tsc, "x86-tsc", .in_ns = 0 },
David Sharp8cbd9cc2012-11-13 12:18:21 -080014
15#else /* !CONFIG_X86_TSC */
16
17#define ARCH_TRACE_CLOCKS
18
19#endif
20
21#endif /* _ASM_X86_TRACE_CLOCK_H */