summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-08-31 18:08:50 +0000
committermsmith <msmith@FreeBSD.org>2001-08-31 18:08:50 +0000
commit85477cf711c667771f03f0ccd26176800e8e751d (patch)
treeabc8560788b34d03dd57814b0902caa7a3de8337
parent44ebfe9763b4ec26dff3638471ebf30f0d10fb1a (diff)
downloadFreeBSD-src-85477cf711c667771f03f0ccd26176800e8e751d.zip
FreeBSD-src-85477cf711c667771f03f0ccd26176800e8e751d.tar.gz
Don't activate placeholder resources; it can be very expensive in the
SYS_RES_MEMORY case, and it shouldn't be necessary.
-rw-r--r--sys/dev/acpica/acpi_resource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c
index ed05390..e3edfc2 100644
--- a/sys/dev/acpica/acpi_resource.c
+++ b/sys/dev/acpica/acpi_resource.c
@@ -563,11 +563,11 @@ acpi_sysresource_attach(device_t dev)
*/
for (i = 0; i < 100; i++) {
rid = i;
- res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 1, RF_ACTIVE);
+ res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 1, 0);
rid = i;
- res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE);
+ res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, 0);
rid = i;
- res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, RF_ACTIVE);
+ res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, 0);
}
return(0);
}
OpenPOWER on IntegriCloud