summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-03-21 15:35:34 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-03-21 15:35:34 +0000
commit11f3a7f10cdd534aca627e5e3ad245f040db336c (patch)
treeb22755d52c79c694eafbf4addd6e6e3ded8bc39e /sys/dev/acpi
parent1137139402dfbf175fc0eeaa6c491a26a4b41d2b (diff)
Always re-route interrupts, even when doing so appears to be a no-op. Some
BIOSen flat out lie to us when we ask for the current routing. ok marco@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpiprt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/acpi/acpiprt.c b/sys/dev/acpi/acpiprt.c
index 81c19e00af8..47e4cc23b8c 100644
--- a/sys/dev/acpi/acpiprt.c
+++ b/sys/dev/acpi/acpiprt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiprt.c,v 1.33 2009/03/11 21:54:15 jordan Exp $ */
+/* $OpenBSD: acpiprt.c,v 1.34 2009/03/21 15:35:33 kettenis Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
@@ -486,12 +486,6 @@ acpiprt_route_interrupt(int bus, int dev, int pin)
}
aml_parse_resource(res.length, res.v_buffer, acpiprt_getirq, &irq);
- /* Only re-route interrupts when necessary. */
- if ((sta & STA_ENABLED) && irq == newirq) {
- aml_freevalue(&res);
- return;
- }
-
crs = (union acpi_resource *)res.v_buffer;
switch (AML_CRSTYPE(crs)) {
case SR_IRQ: