diff options
author | Gordon Willem Klok <gwk@cvs.openbsd.org> | 2006-04-15 05:01:16 +0000 |
---|---|---|
committer | Gordon Willem Klok <gwk@cvs.openbsd.org> | 2006-04-15 05:01:16 +0000 |
commit | 4c794d9858d68f17dcbc63e8405bf7295df37b5a (patch) | |
tree | a0e8c0ab331c1a27faa072967315ee1beda7c0a3 /sys/arch | |
parent | c1a639e73b1368eecdfbd34a2d56a6af0f4979f0 (diff) |
Rid k7_powernow_setperf() of some bad math, this code expected the values
to be expressed in hertz not megahertz.
"makes sense to me" dlg@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/powernow-k7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/powernow-k7.c b/sys/arch/i386/i386/powernow-k7.c index 6d57470b3ce..fd30622fd72 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.14 2006/04/15 04:57:02 gwk Exp $ */ +/* $OpenBSD: powernow-k7.c,v 1.15 2006/04/15 05:01:15 gwk Exp $ */ /* * Copyright (c) 2004 Martin Végiard. @@ -210,7 +210,7 @@ k7_powernow_setperf(int level) if (cstate->errata_a0) enable_intr(); - pentium_mhz = ((cstate->state_table[i].freq / 100000)+1)*100; + pentium_mhz = cstate->state_table[i].freq; return 0; } |