Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_TRACE_CLOCK_H
0003 #define _ASM_X86_TRACE_CLOCK_H
0004 
0005 #include <linux/compiler.h>
0006 #include <linux/types.h>
0007 
0008 #ifdef CONFIG_X86_TSC
0009 
0010 extern u64 notrace trace_clock_x86_tsc(void);
0011 
0012 # define ARCH_TRACE_CLOCKS \
0013     { trace_clock_x86_tsc,  "x86-tsc",  .in_ns = 0 },
0014 
0015 #else /* !CONFIG_X86_TSC */
0016 
0017 #define ARCH_TRACE_CLOCKS
0018 
0019 #endif
0020 
0021 #endif  /* _ASM_X86_TRACE_CLOCK_H */