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:
Jung-uk Kim 2010-12-03 21:54:10 +00:00
parent e391a266ed
commit b14fe63392
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;