]> Pileus Git - ~andy/linux/blobdiff - include/linux/timekeeper_internal.h
net: cdc_ncm: fix control message ordering
[~andy/linux] / include / linux / timekeeper_internal.h
index e1d558e237ecfdd8059106c4e98f488ff406ff12..c1825eb436ed6432372460e676d1949d4d3acc93 100644 (file)
@@ -20,6 +20,8 @@ struct timekeeper {
        u32                     shift;
        /* Number of clock cycles in one NTP interval. */
        cycle_t                 cycle_interval;
+       /* Last cycle value (also stored in clock->cycle_last) */
+       cycle_t                 cycle_last;
        /* Number of clock shifted nano seconds in one NTP interval. */
        u64                     xtime_interval;
        /* shifted nano seconds left over when rounding cycle_interval */
@@ -62,8 +64,11 @@ struct timekeeper {
        ktime_t                 offs_boot;
        /* The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock. */
        struct timespec         raw_time;
-       /* Seqlock for all timekeeper values */
-       seqlock_t               lock;
+       /* The current UTC to TAI offset in seconds */
+       s32                     tai_offset;
+       /* Offset clock monotonic -> clock tai */
+       ktime_t                 offs_tai;
+
 };
 
 static inline struct timespec tk_xtime(struct timekeeper *tk)