[PATCH 02/12] kern_ntptime.c: Enable status variables when PPS_SYNC is defined

Gabriel Moyano gabriel.moyano at dlr.de
Thu Apr 7 08:35:57 UTC 2022


---
 cpukit/score/src/kern_ntptime.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/score/src/kern_ntptime.c b/cpukit/score/src/kern_ntptime.c
index 610386833c..3bbb3290f9 100644
--- a/cpukit/score/src/kern_ntptime.c
+++ b/cpukit/score/src/kern_ntptime.c
@@ -534,6 +534,7 @@ kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp)
 	ntv->stbcnt = pps_stbcnt;
 #endif /* PPS_SYNC */
 #ifdef __rtems__
+#ifndef PPS_SYNC
 	ntv->ppsfreq = 0;
 	ntv->jitter = 0;
 	ntv->shift = 0;
@@ -542,6 +543,7 @@ kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp)
 	ntv->calcnt = 0;
 	ntv->errcnt = 0;
 	ntv->stbcnt = 0;
+#endif /* PPS_SYNC */
 #endif /* __rtems__ */
 	retval = ntp_is_time_error(time_status) ? TIME_ERROR : time_state;
 	NTP_UNLOCK();
-- 
2.25.1



More information about the devel mailing list