summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2008-06-15 00:10:48 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2008-06-15 00:10:48 +0000
commit663dcc3f9fd3820372803855330ae78840ef6eb3 (patch)
tree02c8196ed0b0ecfc7d71247ce3c7cdcd77e5cbdf /sys/arch/i386
parenta6242e4fd9ed444c4a4013f97a5cd04e63b5df64 (diff)
Ensure that when using the ACPI tables the RVO field is initialized from the ctrl value.
commit it marco@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/powernow-k8.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/powernow-k8.c b/sys/arch/i386/i386/powernow-k8.c
index 8e4e2204fe8..af296e02fc3 100644
--- a/sys/arch/i386/i386/powernow-k8.c
+++ b/sys/arch/i386/i386/powernow-k8.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: powernow-k8.c,v 1.23 2007/05/31 17:49:16 gwk Exp $ */
+/* $OpenBSD: powernow-k8.c,v 1.24 2008/06/15 00:10:47 gwk Exp $ */
/*
* Copyright (c) 2004 Martin Végiard.
@@ -391,6 +391,8 @@ k8pnow_acpi_pss_changed(struct acpicpu_pss * pss, int npss)
curs = k8pnow_acpi_states(cstate, pss, npss, status);
ctrl = pss[curs].pss_ctrl;
+
+ cstate->rvo = PN8_ACPI_CTRL_TO_RVO(ctrl);
cstate->vst = PN8_ACPI_CTRL_TO_VST(ctrl);
cstate->mvs = PN8_ACPI_CTRL_TO_MVS(ctrl);
cstate->pll = PN8_ACPI_CTRL_TO_PLL(ctrl);
@@ -414,6 +416,7 @@ k8pnow_acpi_init(struct k8pnow_cpu_state * cstate, uint64_t status)
curs = k8pnow_acpi_states(cstate, pss, cstate->n_states, status);
ctrl = pss[curs].pss_ctrl;
+ cstate->rvo = PN8_ACPI_CTRL_TO_RVO(ctrl);
cstate->vst = PN8_ACPI_CTRL_TO_VST(ctrl);
cstate->mvs = PN8_ACPI_CTRL_TO_MVS(ctrl);
cstate->pll = PN8_ACPI_CTRL_TO_PLL(ctrl);