Page MenuHomeFreeBSD

D33730.id100888.diff
No OneTemporary

D33730.id100888.diff

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

Mime Type
text/plain
Expires
Tue, Sep 24, 5:16 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12633092
Default Alt Text
D33730.id100888.diff (472 B)

Event Timeline