timex.h 631 B

12345678910111213141516171819202122232425262728293031323334
  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 <linux/config.h>
  9. #include <asm/8253pit.h>
  10. #include <asm/msr.h>
  11. #include <asm/vsyscall.h>
  12. #include <asm/hpet.h>
  13. #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */
  14. typedef unsigned long long cycles_t;
  15. static inline cycles_t get_cycles (void)
  16. {
  17. unsigned long long ret;
  18. rdtscll(ret);
  19. return ret;
  20. }
  21. extern unsigned int cpu_khz;
  22. extern int read_current_timer(unsigned long *timer_value);
  23. #define ARCH_HAS_READ_CURRENT_TIMER 1
  24. extern struct vxtime_data vxtime;
  25. #endif