0001
0002 #ifndef _ASM_X86_TIMER_H
0003 #define _ASM_X86_TIMER_H
0004 #include <linux/pm.h>
0005 #include <linux/percpu.h>
0006 #include <linux/interrupt.h>
0007 #include <linux/math64.h>
0008
0009 #define TICK_SIZE (tick_nsec / 1000)
0010
0011 unsigned long long native_sched_clock(void);
0012 extern void recalibrate_cpu_khz(void);
0013
0014 extern int no_timer_check;
0015
0016 extern bool using_native_sched_clock(void);
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 struct cyc2ns_data {
0030 u32 cyc2ns_mul;
0031 u32 cyc2ns_shift;
0032 u64 cyc2ns_offset;
0033 };
0034
0035 extern void cyc2ns_read_begin(struct cyc2ns_data *);
0036 extern void cyc2ns_read_end(void);
0037
0038 #endif