diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-27 18:45:46 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-27 18:45:46 +0000 |
commit | d8662b1c88081a2963313faac63bcc4a3fee7621 (patch) | |
tree | 5566618a3ce273259f42a821ca510e4ff8aa08d8 | |
parent | aef757c32a259789f73be3546295d4aa6f7ff581 (diff) |
Fix off-by-one that made us attach acpicpu0 and acpicpu1 on GENERIC kernels.
ok marco@
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
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"; |