xref: /openbmc/linux/arch/ia64/kernel/fsyscall_gtod_data.h (revision 0aa366f351d044703e25c8425e508170e80d83b1)
1*0aa366f3STony Luck /*
2*0aa366f3STony Luck  * (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
3*0aa366f3STony Luck  *        Contributed by Peter Keilty <peter.keilty@hp.com>
4*0aa366f3STony Luck  *
5*0aa366f3STony Luck  * fsyscall gettimeofday data
6*0aa366f3STony Luck  */
7*0aa366f3STony Luck 
8*0aa366f3STony Luck struct fsyscall_gtod_data_t {
9*0aa366f3STony Luck 	seqlock_t	lock;
10*0aa366f3STony Luck 	struct timespec	wall_time;
11*0aa366f3STony Luck 	struct timespec monotonic_time;
12*0aa366f3STony Luck 	cycle_t		clk_mask;
13*0aa366f3STony Luck 	u32		clk_mult;
14*0aa366f3STony Luck 	u32		clk_shift;
15*0aa366f3STony Luck 	void		*clk_fsys_mmio;
16*0aa366f3STony Luck 	cycle_t		clk_cycle_last;
17*0aa366f3STony Luck } __attribute__ ((aligned (L1_CACHE_BYTES)));
18*0aa366f3STony Luck 
19*0aa366f3STony Luck struct itc_jitter_data_t {
20*0aa366f3STony Luck 	int		itc_jitter;
21*0aa366f3STony Luck 	cycle_t		itc_lastcycle;
22*0aa366f3STony Luck } __attribute__ ((aligned (L1_CACHE_BYTES)));
23*0aa366f3STony Luck 
24