1 #ifndef _ASMi386_TIMER_H
2 #define _ASMi386_TIMER_H
3 #include <linux/init.h>
6 #define TICK_SIZE (tick_nsec / 1000)
8 void setup_pit_timer(void);
9 unsigned long long native_sched_clock(void);
10 unsigned long native_calculate_cpu_khz(void);
12 /* Modifiers for buggy PIT handling */
13 extern int pit_latch_buggy
;
15 extern int no_timer_check
;
16 extern int no_sync_cmos_clock
;
17 extern int recalibrate_cpu_khz(void);
19 #ifndef CONFIG_PARAVIRT
20 #define get_scheduled_cycles(val) rdtscll(val)
21 #define calculate_cpu_khz() native_calculate_cpu_khz()