summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2006-04-15 05:13:55 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2006-04-15 05:13:55 +0000
commit8eadb7240f29ba5a6790a635ad1b703abe7c105e (patch)
tree31c1b73738ba4293d972b7429da7a3960abc3164 /sys/arch/i386
parent4c794d9858d68f17dcbc63e8405bf7295df37b5a (diff)
Eliminate some pointers we dont use, originally for multiprocessor support,
K7 MP parts do not support Cool'N'Quiet. "also makes sense" dlg@
Diffstat (limited to 'sys/arch/i386')
-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 fd30622fd72..88cf910ae33 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.15 2006/04/15 05:01:15 gwk Exp $ */
+/* $OpenBSD: powernow-k7.c,v 1.16 2006/04/15 05:13:54 gwk Exp $ */
/*
* Copyright (c) 2004 Martin Végiard.
@@ -146,7 +146,7 @@ struct pst_s {
uint8_t n_states; /* Number of states */
};
-struct k7pnow_cpu_state * k7pnow_current_state[I386_MAXPROCS];
+struct k7pnow_cpu_state *k7pnow_current_state;
/*
* Prototypes
@@ -162,7 +162,7 @@ k7_powernow_setperf(int level)
uint64_t status, ctl;
struct k7pnow_cpu_state * cstate;
- cstate = k7pnow_current_state[cpu_number()];
+ cstate = k7pnow_current_state;
high = cstate->state_table[cstate->n_states - 1].freq;
low = cstate->state_table[0].freq;
freq = low + (high - low) * level / 100;
@@ -361,7 +361,7 @@ k7_powernow_init(void)
}
printf(" Mhz\n");
- k7pnow_current_state[cpu_number()] = cstate;
+ k7pnow_current_state = cstate;
cpu_setperf = k7_powernow_setperf;
return;
}