Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153015474
D35932.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
D35932.diff
View Options
Index: sys/kern/kern_tc.c
===================================================================
--- sys/kern/kern_tc.c
+++ sys/kern/kern_tc.c
@@ -1842,25 +1842,25 @@
#endif
}
+ *pcount = pps->capcount;
+
/*
* If the timecounter changed, we cannot compare the count values, so
* we have to drop the rest of the PPS-stuff until the next event.
*/
if (__predict_false(pps->ppstc != captc)) {
pps->ppstc = captc;
- *pcount = pps->capcount;
pps->ppscount[2] = pps->capcount;
return;
}
+ (*pseq)++;
+
/* Convert the count to a timespec. */
tcount = pps->capcount - tcount;
tcount &= captc->tc_counter_mask;
bintime_addx(&bt, capth_scale * tcount);
bintime2timespec(&bt, &ts);
-
- *pcount = pps->capcount;
- (*pseq)++;
*tsp = ts;
if (foff) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 3:39 PM (6 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31780766
Default Alt Text
D35932.diff (781 B)
Attached To
Mode
D35932: pps: Move pcount assignment in pps_event()
Attached
Detach File
Event Timeline
Log In to Comment