X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-i386%2Ftimer.h;h=153770e25faaac62f525aaa86ae93e7f60b96cbd;hb=6a0aa67b177a3d84f789f7f19c523d8c5e8bb5f8;hp=4752c3a6a7089580eaf6b18333f26eadc94e18c8;hpb=255f0385c8e0d6b9005c0e09fffb5bd852f3b506;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-i386/timer.h b/include/asm-i386/timer.h index 4752c3a6a70..153770e25fa 100644 --- a/include/asm-i386/timer.h +++ b/include/asm-i386/timer.h @@ -4,13 +4,19 @@ #include #define TICK_SIZE (tick_nsec / 1000) + void setup_pit_timer(void); -/* Modifiers for buggy PIT handling */ -extern int pit_latch_buggy; +unsigned long long native_sched_clock(void); +unsigned long native_calculate_cpu_khz(void); + extern int timer_ack; extern int no_timer_check; -extern unsigned long long (*custom_sched_clock)(void); extern int no_sync_cmos_clock; extern int recalibrate_cpu_khz(void); +#ifndef CONFIG_PARAVIRT +#define get_scheduled_cycles(val) rdtscll(val) +#define calculate_cpu_khz() native_calculate_cpu_khz() +#endif + #endif