Page MenuHomeFreeBSD

D33696.diff
No OneTemporary

D33696.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
@@ -704,7 +704,7 @@
tsc_calibrate(void)
{
struct timecounter *tc;
- uint64_t freq_khz, tsc_start, tsc_end;
+ uint64_t freq, tsc_start, tsc_end;
u_int t_start, t_end;
register_t flags;
int cpu;
@@ -740,9 +740,9 @@
t_end += (uint64_t)tc->tc_counter_mask + 1;
}
- freq_khz = tc->tc_frequency * (tsc_end - tsc_start) / (t_end - t_start);
+ freq = tc->tc_frequency * (tsc_end - tsc_start) / (t_end - t_start);
- tsc_update_freq(freq_khz);
+ tsc_update_freq(freq);
calibrated:
tc_init(&tsc_timecounter);
set_cputicker(rdtsc, tsc_freq, !tsc_is_invariant);

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 14, 7:11 PM (6 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14632600
Default Alt Text
D33696.diff (673 B)

Event Timeline