xref: /openbmc/linux/arch/ia64/kernel/fsyscall_gtod_data.h (revision 664b0bae0b87f69bc9deb098f5e0158b9cf18e04)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
20aa366f3STony Luck /*
30aa366f3STony Luck  * (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
40aa366f3STony Luck  *        Contributed by Peter Keilty <peter.keilty@hp.com>
50aa366f3STony Luck  *
60aa366f3STony Luck  * fsyscall gettimeofday data
70aa366f3STony Luck  */
80aa366f3STony Luck 
9d4d1fc61STony Luck /* like timespec, but includes "shifted nanoseconds" */
10d4d1fc61STony Luck struct time_sn_spec {
11d4d1fc61STony Luck 	u64	sec;
12d4d1fc61STony Luck 	u64	snsec;
13d4d1fc61STony Luck };
14d4d1fc61STony Luck 
150aa366f3STony Luck struct fsyscall_gtod_data_t {
1674a622beSThomas Gleixner 	seqcount_t	seq;
17d4d1fc61STony Luck 	struct time_sn_spec wall_time;
18d4d1fc61STony Luck 	struct time_sn_spec monotonic_time;
19a5a1d1c2SThomas Gleixner 	u64		clk_mask;
200aa366f3STony Luck 	u32		clk_mult;
210aa366f3STony Luck 	u32		clk_shift;
220aa366f3STony Luck 	void		*clk_fsys_mmio;
23a5a1d1c2SThomas Gleixner 	u64		clk_cycle_last;
24acffc84aSHidetoshi Seto } ____cacheline_aligned;
250aa366f3STony Luck 
260aa366f3STony Luck struct itc_jitter_data_t {
270aa366f3STony Luck 	int		itc_jitter;
28a5a1d1c2SThomas Gleixner 	u64		itc_lastcycle;
29acffc84aSHidetoshi Seto } ____cacheline_aligned;
300aa366f3STony Luck 
31