summaryrefslogtreecommitdiff
path: root/sys/arch/i386/i386/powernow-k7.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/i386/powernow-k7.c')
-rw-r--r--sys/arch/i386/i386/powernow-k7.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/powernow-k7.c b/sys/arch/i386/i386/powernow-k7.c
index aae5da30910..2c8f7102a86 100644
--- a/sys/arch/i386/i386/powernow-k7.c
+++ b/sys/arch/i386/i386/powernow-k7.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: powernow-k7.c,v 1.29 2006/12/12 23:14:27 dim Exp $ */
+/* $OpenBSD: powernow-k7.c,v 1.30 2006/12/20 17:50:40 gwk Exp $ */
/*
* Copyright (c) 2004 Martin Végiard.
@@ -196,7 +196,7 @@ k7_powernow_setperf(int level)
cfid = PN7_STA_CFID(status);
cvid = PN7_STA_CVID(status);
if (cfid == fid || cvid == vid)
- pentium_mhz = cstate->state_table[i].freq;
+ cpuspeed = cstate->state_table[i].freq;
}
/*
@@ -326,7 +326,7 @@ k7_powernow_init(void)
startvid = PN7_STA_SVID(status);
currentfid = PN7_STA_CFID(status);
- cstate->fsb = pentium_mhz / (k7pnow_fid_to_mult[currentfid]/10);
+ cstate->fsb = cpuspeed / (k7pnow_fid_to_mult[currentfid]/10);
/* if the base CPUID signature fails to match try, the extended one */
if (!k7pnow_states(cstate, ci->ci_signature, maxfid, startvid))
@@ -337,7 +337,7 @@ k7_powernow_init(void)
else
techname = "PowerNow! K7";
printf("%s: %s %d MHz: speeds:",
- ci->ci_dev.dv_xname, techname, pentium_mhz);
+ ci->ci_dev.dv_xname, techname, cpuspeed);
for (i = cstate->n_states; i > 0; i--) {
state = &cstate->state_table[i-1];
printf(" %d", state->freq);