From 8eadb7240f29ba5a6790a635ad1b703abe7c105e Mon Sep 17 00:00:00 2001 From: Gordon Willem Klok Date: Sat, 15 Apr 2006 05:13:55 +0000 Subject: Eliminate some pointers we dont use, originally for multiprocessor support, K7 MP parts do not support Cool'N'Quiet. "also makes sense" dlg@ --- sys/arch/i386/i386/powernow-k7.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/i386') 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; } -- cgit v1.2.3