fsyscall_gtod_data.h 636 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
  4. * Contributed by Peter Keilty <peter.keilty@hp.com>
  5. *
  6. * fsyscall gettimeofday data
  7. */
  8. /* like timespec, but includes "shifted nanoseconds" */
  9. struct time_sn_spec {
  10. u64 sec;
  11. u64 snsec;
  12. };
  13. struct fsyscall_gtod_data_t {
  14. seqcount_t seq;
  15. struct time_sn_spec wall_time;
  16. struct time_sn_spec monotonic_time;
  17. u64 clk_mask;
  18. u32 clk_mult;
  19. u32 clk_shift;
  20. void *clk_fsys_mmio;
  21. u64 clk_cycle_last;
  22. } ____cacheline_aligned;
  23. struct itc_jitter_data_t {
  24. int itc_jitter;
  25. u64 itc_lastcycle;
  26. } ____cacheline_aligned;