timer.h 515 B

12345678910111213141516171819202122
  1. #ifndef _ASMi386_TIMER_H
  2. #define _ASMi386_TIMER_H
  3. #include <linux/init.h>
  4. #include <linux/pm.h>
  5. #define TICK_SIZE (tick_nsec / 1000)
  6. void setup_pit_timer(void);
  7. unsigned long long native_sched_clock(void);
  8. unsigned long native_calculate_cpu_khz(void);
  9. extern int timer_ack;
  10. extern int no_timer_check;
  11. extern int no_sync_cmos_clock;
  12. extern int recalibrate_cpu_khz(void);
  13. #ifndef CONFIG_PARAVIRT
  14. #define get_scheduled_cycles(val) rdtscll(val)
  15. #define calculate_cpu_khz() native_calculate_cpu_khz()
  16. #endif
  17. #endif