Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150553749
D25145.id77690.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
D25145.id77690.diff
View Options
Index: head/sys/dev/acpica/acpi_resource.c
===================================================================
--- head/sys/dev/acpica/acpi_resource.c
+++ head/sys/dev/acpica/acpi_resource.c
@@ -643,17 +643,13 @@
int trig, int pol)
{
struct acpi_res_context *cp = (struct acpi_res_context *)context;
- rman_res_t intr;
+ int i;
if (cp == NULL || irq == NULL)
return;
- /* This implements no resource relocation. */
- if (count != 1)
- return;
-
- intr = *irq;
- bus_set_resource(dev, SYS_RES_IRQ, cp->ar_nirq++, intr, 1);
+ for (i = 0; i < count; i++)
+ bus_set_resource(dev, SYS_RES_IRQ, cp->ar_nirq++, irq[i], 1);
}
static void
@@ -661,17 +657,13 @@
int trig, int pol)
{
struct acpi_res_context *cp = (struct acpi_res_context *)context;
- rman_res_t intr;
+ int i;
if (cp == NULL || irq == NULL)
return;
- /* This implements no resource relocation. */
- if (count != 1)
- return;
-
- intr = *irq;
- bus_set_resource(dev, SYS_RES_IRQ, cp->ar_nirq++, intr, 1);
+ for (i = 0; i < count; i++)
+ bus_set_resource(dev, SYS_RES_IRQ, cp->ar_nirq++, irq[i], 1);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 7:28 AM (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30749157
Default Alt Text
D25145.id77690.diff (1 KB)
Attached To
Mode
D25145: acpi_resource: support multiple IRQs
Attached
Detach File
Event Timeline
Log In to Comment