Explicitly initialize TSC frequency. To calibrate TSC frequency, we use
DELAY(9) and it may use TSC in turn if TSC frequency is non-zero. MFC after: 3 days
This commit is contained in:
parent
e391a266ed
commit
b14fe63392
@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "cpufreq_if.h"
|
||||
|
||||
uint64_t tsc_freq;
|
||||
uint64_t tsc_freq = 0;
|
||||
int tsc_is_broken;
|
||||
int tsc_is_invariant;
|
||||
static eventhandler_tag tsc_levels_tag, tsc_pre_tag, tsc_post_tag;
|
||||
|
@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "cpufreq_if.h"
|
||||
|
||||
uint64_t tsc_freq;
|
||||
uint64_t tsc_freq = 0;
|
||||
int tsc_is_broken;
|
||||
int tsc_is_invariant;
|
||||
u_int tsc_present;
|
||||
|
Loading…
x
Reference in New Issue
Block a user