vdso_datapage.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2012 ARM Limited
  3. // Copyright (C) 2005-2017 Andes Technology Corporation
  4. #ifndef __ASM_VDSO_DATAPAGE_H
  5. #define __ASM_VDSO_DATAPAGE_H
  6. #ifdef __KERNEL__
  7. #ifndef __ASSEMBLY__
  8. struct vdso_data {
  9. bool cycle_count_down; /* timer cyclye counter is decrease with time */
  10. u32 cycle_count_offset; /* offset of timer cycle counter register */
  11. u32 seq_count; /* sequence count - odd during updates */
  12. u32 xtime_coarse_sec; /* coarse time */
  13. u32 xtime_coarse_nsec;
  14. u32 wtm_clock_sec; /* wall to monotonic offset */
  15. u32 wtm_clock_nsec;
  16. u32 xtime_clock_sec; /* CLOCK_REALTIME - seconds */
  17. u32 cs_mult; /* clocksource multiplier */
  18. u32 cs_shift; /* Cycle to nanosecond divisor (power of two) */
  19. u64 cs_cycle_last; /* last cycle value */
  20. u64 cs_mask; /* clocksource mask */
  21. u64 xtime_clock_nsec; /* CLOCK_REALTIME sub-ns base */
  22. u32 tz_minuteswest; /* timezone info for gettimeofday(2) */
  23. u32 tz_dsttime;
  24. };
  25. #endif /* !__ASSEMBLY__ */
  26. #endif /* __KERNEL__ */
  27. #endif /* __ASM_VDSO_DATAPAGE_H */