Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152524748
D54384.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
479 B
Referenced Files
None
Subscribers
None
D54384.diff
View Options
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -388,7 +388,11 @@
time_constant = ntv->constant;
}
if (modes & MOD_TAI) {
- if (ntv->constant > 0) /* XXX zero & negative numbers ? */
+ if (ntv->constant > 0)
+ /*
+ * Ignore zero or negative values. The time constant must be positive
+ * to maintain stable clock discipline.
+ */
time_tai = ntv->constant;
}
#ifdef PPS_SYNC
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 12:01 PM (13 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31573513
Default Alt Text
D54384.diff (479 B)
Attached To
Mode
D54384: kern_ntptime: document handling of non-positive time constant
Attached
Detach File
Event Timeline
Log In to Comment