summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2008-12-22 07:19:10 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2008-12-22 07:19:10 +0000
commit6dbbd06201c3065a37f96ae9125f939a9e72e4d0 (patch)
treecda7a77a6591ea996c6ca12321ec0889852efc51 /sys/dev/acpi
parent51f93c0222719539eb94fb5f24d64d94397ee1b8 (diff)
With respect to the previous diff we cannot just call acpicpu_setperf
directly, we must call the global function pointer cpu_setperf because we might be on an MP system and if we don't, we only attempt to change the frequency on a single core. ok marco@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpicpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpicpu.c b/sys/dev/acpi/acpicpu.c
index 98f9daf2cd8..7dba942dd39 100644
--- a/sys/dev/acpi/acpicpu.c
+++ b/sys/dev/acpi/acpicpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpicpu.c,v 1.49 2008/12/22 06:37:36 gwk Exp $ */
+/* $OpenBSD: acpicpu.c,v 1.50 2008/12/22 07:19:09 gwk Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -636,7 +636,7 @@ acpicpu_setperf_ppc_change(struct acpicpu_pss *pss, int npss) {
sc = acpicpu_sc[0];
if (sc != NULL)
- acpicpu_setperf(sc->sc_level);
+ cpu_setperf(sc->sc_level);
}
void