summaryrefslogtreecommitdiffstats
path: root/sys/x86/cpufreq/est.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/x86/cpufreq/est.c')
-rw-r--r--sys/x86/cpufreq/est.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/x86/cpufreq/est.c b/sys/x86/cpufreq/est.c
index cc9502d..d8acfe6 100644
--- a/sys/x86/cpufreq/est.c
+++ b/sys/x86/cpufreq/est.c
@@ -1288,10 +1288,9 @@ est_set_id16(device_t dev, uint16_t id16, int need_check)
msr = (msr & ~0xffff) | id16;
wrmsr(MSR_PERF_CTL, msr);
- /* Wait a short while for the new setting. XXX Is this necessary? */
- DELAY(EST_TRANS_LAT);
-
if (need_check) {
+ /* Wait a short while and read the new status. */
+ DELAY(EST_TRANS_LAT);
est_get_id16(&new_id16);
if (new_id16 != id16) {
if (bootverbose)
OpenPOWER on IntegriCloud