RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / asm-i386 / timer.h
blob153770e25faaac62f525aaa86ae93e7f60b96cbd
1 #ifndef _ASMi386_TIMER_H
2 #define _ASMi386_TIMER_H
3 #include <linux/init.h>
4 #include <linux/pm.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 extern int timer_ack;
13 extern int no_timer_check;
14 extern int no_sync_cmos_clock;
15 extern int recalibrate_cpu_khz(void);
17 #ifndef CONFIG_PARAVIRT
18 #define get_scheduled_cycles(val) rdtscll(val)
19 #define calculate_cpu_khz() native_calculate_cpu_khz()
20 #endif
22 #endif