X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-i386%2Ftimer.h;h=153770e25faaac62f525aaa86ae93e7f60b96cbd;hb=25243633c29b72c4edd5fe9cfcbd76aa5eef8b36;hp=4752c3a6a7089580eaf6b18333f26eadc94e18c8;hpb=9cdd79c9b99873d600d397fda012fc3f57cc2776;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