Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102539631
D33696.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
673 B
Referenced Files
None
Subscribers
None
D33696.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
@@ -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
Details
Attached
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)
Attached To
Mode
D33696: Fix variable name: freq_khz -> freq
Attached
Detach File
Event Timeline
Log In to Comment