aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pps_kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pps_kernel.h')
-rw-r--r--include/linux/pps_kernel.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/pps_kernel.h b/include/linux/pps_kernel.h
index 1d2cd21242e8..b2fbd62ab18d 100644
--- a/include/linux/pps_kernel.h
+++ b/include/linux/pps_kernel.h
@@ -115,7 +115,12 @@ static inline void timespec_to_pps_ktime(struct pps_ktime *kt,
115 115
116static inline void pps_get_ts(struct pps_event_time *ts) 116static inline void pps_get_ts(struct pps_event_time *ts)
117{ 117{
118 getnstime_raw_and_real(&ts->ts_raw, &ts->ts_real); 118 struct timespec64 raw, real;
119
120 ktime_get_raw_and_real_ts64(&raw, &real);
121
122 ts->ts_raw = timespec64_to_timespec(raw);
123 ts->ts_real = timespec64_to_timespec(real);
119} 124}
120 125
121#else /* CONFIG_NTP_PPS */ 126#else /* CONFIG_NTP_PPS */