vgtod.h 622 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_X86_VGTOD_H
  2. #define _ASM_X86_VGTOD_H
  3. #include <asm/vsyscall.h>
  4. #include <linux/clocksource.h>
  5. struct vsyscall_gtod_data {
  6. seqcount_t seq;
  7. struct { /* extract of a clocksource struct */
  8. int vclock_mode;
  9. cycle_t cycle_last;
  10. cycle_t mask;
  11. u32 mult;
  12. u32 shift;
  13. } clock;
  14. /* open coded 'struct timespec' */
  15. time_t wall_time_sec;
  16. u32 wall_time_nsec;
  17. u32 monotonic_time_nsec;
  18. time_t monotonic_time_sec;
  19. struct timezone sys_tz;
  20. struct timespec wall_time_coarse;
  21. struct timespec monotonic_time_coarse;
  22. };
  23. extern struct vsyscall_gtod_data vsyscall_gtod_data;
  24. #endif /* _ASM_X86_VGTOD_H */