diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pps_kernel.h | 7 | ||||
| -rw-r--r-- | include/linux/timekeeping.h | 4 |
2 files changed, 8 insertions, 3 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 | ||
| 116 | static inline void pps_get_ts(struct pps_event_time *ts) | 116 | static 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 */ |
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index ba0ae09cbb21..ec89d846324c 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h | |||
| @@ -263,8 +263,8 @@ extern void timekeeping_inject_sleeptime64(struct timespec64 *delta); | |||
| 263 | /* | 263 | /* |
| 264 | * PPS accessor | 264 | * PPS accessor |
| 265 | */ | 265 | */ |
| 266 | extern void getnstime_raw_and_real(struct timespec *ts_raw, | 266 | extern void ktime_get_raw_and_real_ts64(struct timespec64 *ts_raw, |
| 267 | struct timespec *ts_real); | 267 | struct timespec64 *ts_real); |
| 268 | 268 | ||
| 269 | /* | 269 | /* |
| 270 | * Persistent clock related interfaces | 270 | * Persistent clock related interfaces |
