diff options
author | jhb <jhb@FreeBSD.org> | 2008-06-27 00:56:36 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-06-27 00:56:36 +0000 |
commit | e4a24213c9f0aa868f3b49d1c69c509754e2410c (patch) | |
tree | fe1744a79c4acc3debe7d7f6b1425c20aad0fcd2 /sys/i386 | |
parent | 13c34b0782df77bfd8ee1978300ffd950730d295 (diff) | |
download | FreeBSD-src-e4a24213c9f0aa868f3b49d1c69c509754e2410c.zip FreeBSD-src-e4a24213c9f0aa868f3b49d1c69c509754e2410c.tar.gz |
MFC: After probing the available frequency settings, restore the CPU to run
at whatever frequency it started at.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/cpufreq/est.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/cpufreq/est.c b/sys/i386/cpufreq/est.c index 374bdde..ac99e04 100644 --- a/sys/i386/cpufreq/est.c +++ b/sys/i386/cpufreq/est.c @@ -1102,12 +1102,12 @@ est_acpi_info(device_t dev, freq_info **freqs) error = ENOMEM; goto out; } + est_get_id16(&saved_id16); for (i = 0, j = 0; i < count; i++) { /* * Confirm id16 value is correct. */ if (sets[i].freq > 0) { - est_get_id16(&saved_id16); error = est_set_id16(dev, sets[i].spec[0], 1); if (error != 0) { if (bootverbose) @@ -1120,10 +1120,10 @@ est_acpi_info(device_t dev, freq_info **freqs) table[j].power = sets[i].power; ++j; } - /* restore saved setting */ - est_set_id16(dev, sets[i].spec[0], 0); } } + /* restore saved setting */ + est_set_id16(dev, saved_id16, 0); /* Mark end of table with a terminator. */ bzero(&table[j], sizeof(freq_info)); |