summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-11-27 18:45:46 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-11-27 18:45:46 +0000
commitd8662b1c88081a2963313faac63bcc4a3fee7621 (patch)
tree5566618a3ce273259f42a821ca510e4ff8aa08d8 /sys/dev/acpi
parentaef757c32a259789f73be3546295d4aa6f7ff581 (diff)
Fix off-by-one that made us attach acpicpu0 and acpicpu1 on GENERIC kernels.
ok marco@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index a03a2fbe7bd..2b8d4172b46 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.106 2007/11/25 09:11:12 jsg Exp $ */
+/* $OpenBSD: acpi.c,v 1.107 2007/11/27 18:45:45 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -373,7 +373,7 @@ acpi_add_device(struct aml_node *node, void *arg)
if (proc_id && (proc_id >= LAPIC_MAP_SIZE ||
(acpi_lapic_flags[proc_id] & ACPI_PROC_ENABLE) == 0))
#else
- if (proc_id > 1)
+ if (proc_id > 0)
#endif
return 0;
aaa.aaa_name = "acpicpu";