summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-09-15 19:25:37 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-09-15 19:25:37 +0000
commited39f38a9ab23e3d455f16b7c3154f69db4410b7 (patch)
tree7ea5b1694ab521822721fd64900014f32eb81fa4 /sys/dev/acpi
parentd7ba03708b5290acbf53870184fb17818a3c3ca0 (diff)
Make this compile if !MULTIPROCESSOR.
ok brad@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpimadt.c6
-rw-r--r--sys/dev/acpi/acpivar.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c
index a0454056e7e..ca64cdea1d2 100644
--- a/sys/dev/acpi/acpimadt.c
+++ b/sys/dev/acpi/acpimadt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpimadt.c,v 1.20 2008/08/10 09:59:55 kettenis Exp $ */
+/* $OpenBSD: acpimadt.c,v 1.21 2008/09/15 19:25:36 kettenis Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
@@ -33,6 +33,8 @@
#include <machine/i8259.h>
#include <machine/i82093reg.h>
#include <machine/i82093var.h>
+#include <machine/i82489reg.h>
+#include <machine/i82489var.h>
#include <machine/mpbiosvar.h>
@@ -175,7 +177,9 @@ acpimadt_attach(struct device *parent, struct device *self, void *aux)
caa.cpu_role = CPU_ROLE_AP;
caa.caa_name = "cpu";
caa.cpu_number = entry->madt_lapic.apic_id;
+#ifdef MULTIPROCESSOR
caa.cpu_func = &mp_cpu_funcs;
+#endif
#ifdef __i386__
/*
* XXX utterly wrong. These are the
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h
index a5a7eb65c26..2f2d5047243 100644
--- a/sys/dev/acpi/acpivar.h
+++ b/sys/dev/acpi/acpivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpivar.h,v 1.42 2007/12/05 19:17:13 deraadt Exp $ */
+/* $OpenBSD: acpivar.h,v 1.43 2008/09/15 19:25:36 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -34,10 +34,8 @@ extern int acpi_debug;
extern int acpi_hasprocfvs;
-#ifdef MULTIPROCESSOR
#define LAPIC_MAP_SIZE 256
extern u_int8_t acpi_lapic_flags[LAPIC_MAP_SIZE];
-#endif
struct klist;
struct acpiec_softc;