FreeBSD Bugzilla – Attachment 230628 Details for
Bug 260868
possible i386 regression after ce35a3bc852d25cb989bc1f3dc4ddb723d7d5117
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
diff (text/plain), 565 bytes, created by
Mark Johnston
on 2022-01-02 16:16:48 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Mark Johnston
Created:
2022-01-02 16:16:48 UTC
Size:
565 bytes
patch
obsolete
>diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c >index ab8f94c2fc2d..7cf065c0a288 100644 >--- a/sys/x86/x86/tsc.c >+++ b/sys/x86/x86/tsc.c >@@ -711,6 +711,8 @@ tsc_calibrate(void) > return; > > tc = atomic_load_ptr(&timecounter); >+ if (tc->tc_quality <= 0) >+ goto calibrated; > > flags = intr_disable(); > cpu = curcpu; >@@ -739,6 +741,7 @@ tsc_calibrate(void) > freq_khz = tc->tc_frequency * (tsc_end - tsc_start) / (t_end - t_start); > > tsc_update_freq(freq_khz); >+calibrated: > tc_init(&tsc_timecounter); > set_cputicker(rdtsc, tsc_freq, !tsc_is_invariant); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260868
:
230609
|
230612
| 230628 |
230635