]> err.no Git - linux-2.6/blob - include/asm-i386/timer.h
d1f7b4f575b4abe20e9a703c5ec1d16016ab2a8a
[linux-2.6] / include / asm-i386 / timer.h
1 #ifndef _ASMi386_TIMER_H
2 #define _ASMi386_TIMER_H
3 #include <linux/init.h>
4 #include <linux/pm.h>
5
6 #define TICK_SIZE (tick_nsec / 1000)
7
8 void setup_pit_timer(void);
9 unsigned long long native_sched_clock(void);
10
11 /* Modifiers for buggy PIT handling */
12 extern int pit_latch_buggy;
13 extern int timer_ack;
14 extern int no_timer_check;
15 extern int no_sync_cmos_clock;
16 extern int recalibrate_cpu_khz(void);
17
18 #ifndef CONFIG_PARAVIRT
19 #define get_scheduled_cycles(val) rdtscll(val)
20 #endif
21
22 #endif