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