fsyscall_gtod_data.h 597 字节
Newer Older
1 2 3 4 5 6 7
/*
 * (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
 *        Contributed by Peter Keilty <peter.keilty@hp.com>
 *
 * fsyscall gettimeofday data
 */

8 9 10 11 12 13
/* like timespec, but includes "shifted nanoseconds" */
struct time_sn_spec {
	u64	sec;
	u64	snsec;
};

14
struct fsyscall_gtod_data_t {
15
	seqcount_t	seq;
16 17
	struct time_sn_spec wall_time;
	struct time_sn_spec monotonic_time;
18
	u64		clk_mask;
19 20 21
	u32		clk_mult;
	u32		clk_shift;
	void		*clk_fsys_mmio;
22
	u64		clk_cycle_last;
23
} ____cacheline_aligned;
24 25 26

struct itc_jitter_data_t {
	int		itc_jitter;
27
	u64		itc_lastcycle;
28
} ____cacheline_aligned;
29