Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148256766
D29326.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
891 B
Referenced Files
None
Subscribers
None
D29326.diff
View Options
Index: sys/kern/subr_intr.c
===================================================================
--- sys/kern/subr_intr.c
+++ sys/kern/subr_intr.c
@@ -401,15 +401,14 @@
static inline int
isrc_alloc_irq(struct intr_irqsrc *isrc)
{
- u_int maxirqs, irq;
+ u_int irq;
mtx_assert(&isrc_table_lock, MA_OWNED);
- maxirqs = intr_nirq;
- if (irq_next_free >= maxirqs)
+ if (irq_next_free >= intr_nirq)
return (ENOSPC);
- for (irq = irq_next_free; irq < maxirqs; irq++) {
+ for (irq = irq_next_free; irq < intr_nirq; irq++) {
if (irq_sources[irq] == NULL)
goto found;
}
@@ -418,7 +417,7 @@
goto found;
}
- irq_next_free = maxirqs;
+ irq_next_free = intr_nirq;
return (ENOSPC);
found:
@@ -426,7 +425,7 @@
irq_sources[irq] = isrc;
irq_next_free = irq + 1;
- if (irq_next_free >= maxirqs)
+ if (irq_next_free >= intr_nirq)
irq_next_free = 0;
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 17, 8:15 PM (9 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29847049
Default Alt Text
D29326.diff (891 B)
Attached To
Mode
D29326: kern/intr: remove maxirqs from isrc_alloc_irq()
Attached
Detach File
Event Timeline
Log In to Comment