Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103004043
D32787.id103351.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32787.id103351.diff
View Options
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -1200,6 +1200,7 @@
acpi_hint_device_unit(device_t acdev, device_t child, const char *name,
int *unitp)
{
+ device_location_cache_t *cache;
const char *s;
int line, unit;
bool matches;
@@ -1209,6 +1210,7 @@
* name to see if one's resources are a subset of this device.
*/
line = 0;
+ cache = dev_wired_cache_init();
while (resource_find_dev(&line, name, &unit, "at", NULL) == 0) {
/* Must have an "at" for acpi or isa. */
resource_string_value(name, unit, "at", &s);
@@ -1216,6 +1218,8 @@
if (strcmp(s, "acpi0") == 0 || strcmp(s, "acpi") == 0 ||
strcmp(s, "isa0") == 0 || strcmp(s, "isa") == 0)
matches = acpi_hint_device_matches_resources(child, name, unit);
+ else
+ matches = dev_wired_cache_match(cache, child, s);
if (matches) {
/* We have a winner! */
@@ -1223,6 +1227,7 @@
break;
}
}
+ dev_wired_cache_fini(cache);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 5:27 PM (1 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14743619
Default Alt Text
D32787.id103351.diff (1 KB)
Attached To
Mode
D32787: acpi: Allow matching based on locators
Attached
Detach File
Event Timeline
Log In to Comment