timex.h 605 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * linux/include/asm-x86_64/timex.h
  3. *
  4. * x86-64 architecture timex specifications
  5. */
  6. #ifndef _ASMx8664_TIMEX_H
  7. #define _ASMx8664_TIMEX_H
  8. #include <asm/8253pit.h>
  9. #include <asm/msr.h>
  10. #include <asm/vsyscall.h>
  11. #include <asm/hpet.h>
  12. #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */
  13. typedef unsigned long long cycles_t;
  14. static inline cycles_t get_cycles (void)
  15. {
  16. unsigned long long ret;
  17. rdtscll(ret);
  18. return ret;
  19. }
  20. extern unsigned int cpu_khz;
  21. extern int read_current_timer(unsigned long *timer_value);
  22. #define ARCH_HAS_READ_CURRENT_TIMER 1
  23. extern struct vxtime_data vxtime;
  24. #endif