From 6dbbd06201c3065a37f96ae9125f939a9e72e4d0 Mon Sep 17 00:00:00 2001 From: Gordon Willem Klok Date: Mon, 22 Dec 2008 07:19:10 +0000 Subject: 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@ --- sys/dev/acpi/acpicpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpi') 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 * @@ -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 -- cgit v1.2.3