From: Matthew Dillon Date: Tue, 28 Jun 2005 07:15:38 +0000 (+0000) Subject: The recent commit to propogate kernel options to modules enabled the X-Git-Tag: v2.0.1~6779 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/abaf12d1e5703fa28bad71c8a6d238995d1577bb The recent commit to propogate kernel options to modules enabled the ACPI cx state code, which had a big fast KKASSERT(0) in it (panic on boot). Fix it. --- diff --git a/sys/dev/acpica5/acpi_cpu.c b/sys/dev/acpica5/acpi_cpu.c index eee88b060a..9c928bdbd2 100644 --- a/sys/dev/acpica5/acpi_cpu.c +++ b/sys/dev/acpica5/acpi_cpu.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/dev/acpica/acpi_cpu.c,v 1.41 2004/06/24 00:38:51 njl Exp $ - * $DragonFly: src/sys/dev/acpica5/acpi_cpu.c,v 1.8 2004/11/21 09:07:14 y0netan1 Exp $ + * $DragonFly: src/sys/dev/acpica5/acpi_cpu.c,v 1.9 2005/06/28 07:15:38 dillon Exp $ */ #include "opt_acpi.h" @@ -825,9 +825,10 @@ acpi_cpu_startup_cx() #endif /* Take over idling from cpu_idle_default_hook(). */ - KKASSERT(0); - /* XXX only set this if ncpus == 1, for now XXX */ - cpu_idle_hook = acpi_cpu_idle; + if (ncpus == 1) + cpu_idle_hook = acpi_cpu_idle; + else + printf("Warning: ACPI idle hook not yet supported for SMP\n"); } /*