Disable the code to generate a simple table from the status MSR by default.

This can be enabled by setting the 'hw.est.msr_info' tunable to 1.
This commit is contained in:
jhb 2008-08-26 17:43:46 +00:00
parent f016db7e16
commit 0044067c33

View File

@ -94,6 +94,8 @@ struct est_softc {
const char intel_id[] = "GenuineIntel";
const char centaur_id[] = "CentaurHauls";
static int msr_info_enabled = 0;
TUNABLE_INT("hw.est.msr_info", &msr_info_enabled);
/* Default bus clock value for Centrino processors. */
#define INTEL_BUS_CLK 100
@ -1196,6 +1198,9 @@ est_msr_info(device_t dev, uint64_t msr, freq_info **freqs)
int bus, freq, volts;
uint16_t id;
if (!msr_info_enabled)
return (EOPNOTSUPP);
/* Figure out the bus clock. */
freq = tsc_freq / 1000000;
id = msr >> 32;