aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-06 23:45:28 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-06 23:45:28 +0000
commit354ef278e99d5f16732c887ac6d734553ab768cd (patch)
treedf4062e52c5f19ac340030de60744b71473013d8
parentd68cc5a8390f5316400181b77a195f734567abd3 (diff)
downloadsrc-354ef278e99d5f16732c887ac6d734553ab768cd.tar.gz
src-354ef278e99d5f16732c887ac6d734553ab768cd.zip
powernow(4): Fix unused variable warnings by using the variables.
-rw-r--r--sys/x86/cpufreq/powernow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/cpufreq/powernow.c b/sys/x86/cpufreq/powernow.c
index 977798ab2f77..bc17c7e96999 100644
--- a/sys/x86/cpufreq/powernow.c
+++ b/sys/x86/cpufreq/powernow.c
@@ -913,7 +913,7 @@ pn_probe(device_t dev)
* mobile processor. If not, it is a low powered desktop
* processor.
*/
- if (PN7_STA_SFID(status) != PN7_STA_MFID(status)) {
+ if (sfid != mfid) {
sc->vid_to_volts = pn7_mobile_vid_to_volts;
device_set_desc(dev, "PowerNow! K7");
} else {
@@ -930,7 +930,7 @@ pn_probe(device_t dev)
sc->vid_to_volts = pn8_vid_to_volts;
sc->fsb = rate / 100000 / pn8_fid_to_mult[cfid];
- if (PN8_STA_SFID(status) != PN8_STA_MFID(status))
+ if (sfid != mfid)
device_set_desc(dev, "PowerNow! K8");
else
device_set_desc(dev, "Cool`n'Quiet K8");