vdso_datapage.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2012 ARM Limited
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef __ASM_VDSO_DATAPAGE_H
  17. #define __ASM_VDSO_DATAPAGE_H
  18. #ifdef __KERNEL__
  19. #ifndef __ASSEMBLY__
  20. struct vdso_data {
  21. __u64 cs_cycle_last; /* Timebase at clocksource init */
  22. __u64 xtime_clock_sec; /* Kernel time */
  23. __u64 xtime_clock_nsec;
  24. __u64 xtime_coarse_sec; /* Coarse time */
  25. __u64 xtime_coarse_nsec;
  26. __u64 wtm_clock_sec; /* Wall to monotonic time */
  27. __u64 wtm_clock_nsec;
  28. __u32 tb_seq_count; /* Timebase sequence counter */
  29. __u32 cs_mult; /* Clocksource multiplier */
  30. __u32 cs_shift; /* Clocksource shift */
  31. __u32 tz_minuteswest; /* Whacky timezone stuff */
  32. __u32 tz_dsttime;
  33. __u32 use_syscall;
  34. };
  35. #endif /* !__ASSEMBLY__ */
  36. #endif /* __KERNEL__ */
  37. #endif /* __ASM_VDSO_DATAPAGE_H */