Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _ASMi386_TIMER_H |
2 | #define _ASMi386_TIMER_H | |
3 | #include <linux/init.h> | |
c3c433e4 | 4 | #include <linux/pm.h> |
1da177e4 | 5 | |
1da177e4 | 6 | #define TICK_SIZE (tick_nsec / 1000) |
6cb9a835 | 7 | |
1da177e4 | 8 | void setup_pit_timer(void); |
6cb9a835 | 9 | unsigned long long native_sched_clock(void); |
1182d852 | 10 | unsigned long native_calculate_cpu_khz(void); |
6cb9a835 | 11 | |
1da177e4 | 12 | extern int timer_ack; |
7ce0bcfd | 13 | extern int no_timer_check; |
bbab4f3b | 14 | extern int no_sync_cmos_clock; |
c5d28fb2 | 15 | extern int recalibrate_cpu_khz(void); |
1da177e4 | 16 | |
6cb9a835 ZA |
17 | #ifndef CONFIG_PARAVIRT |
18 | #define get_scheduled_cycles(val) rdtscll(val) | |
1182d852 | 19 | #define calculate_cpu_khz() native_calculate_cpu_khz() |
6cb9a835 ZA |
20 | #endif |
21 | ||
1da177e4 | 22 | #endif |