PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/x86/include/asm/vgtod.h

https://bitbucket.org/cresqo/cm7-p500-kernel
C Header | 30 lines | 24 code | 5 blank | 1 comment | 0 complexity | 109e2fb8a7f97e65e5208e55c577d478 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
  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. seqlock_t lock;
  7. /* open coded 'struct timespec' */
  8. time_t wall_time_sec;
  9. u32 wall_time_nsec;
  10. int sysctl_enabled;
  11. struct timezone sys_tz;
  12. struct { /* extract of a clocksource struct */
  13. cycle_t (*vread)(void);
  14. cycle_t cycle_last;
  15. cycle_t mask;
  16. u32 mult;
  17. u32 shift;
  18. } clock;
  19. struct timespec wall_to_monotonic;
  20. struct timespec wall_time_coarse;
  21. };
  22. extern struct vsyscall_gtod_data __vsyscall_gtod_data
  23. __section_vsyscall_gtod_data;
  24. extern struct vsyscall_gtod_data vsyscall_gtod_data;
  25. #endif /* _ASM_X86_VGTOD_H */