Don't activate placeholder resources; it can be very expensive in the

SYS_RES_MEMORY case, and it shouldn't be necessary.
This commit is contained in:
Mike Smith 2001-08-31 18:08:50 +00:00
parent 4e372c6746
commit 05c03ed9b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82667

View File

@ -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);
}