Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107212827
D33730.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
472 B
Referenced Files
None
Subscribers
None
D33730.diff
View Options
diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c
--- a/sys/x86/x86/tsc.c
+++ b/sys/x86/x86/tsc.c
@@ -714,7 +714,14 @@
if (tsc_early_calib_exact)
goto calibrated;
+ /*
+ * Avoid using a low-quality timecounter to re-calibrate. In
+ * particular, old 32-bit platforms might only have the 8254 timer to
+ * calibrate against.
+ */
tc = atomic_load_ptr(&timecounter);
+ if (tc->tc_quality <= 0)
+ goto calibrated;
flags = intr_disable();
cpu = curcpu;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 3:37 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15770705
Default Alt Text
D33730.diff (472 B)
Attached To
Mode
D33730: x86: Skip late calibration if our reference timer has low quality
Attached
Detach File
Event Timeline
Log In to Comment