Page MenuHomeFreeBSD

D21988.id.diff
No OneTemporary

D21988.id.diff

Index: head/sys/contrib/ncsw/user/env/xx.c
===================================================================
--- head/sys/contrib/ncsw/user/env/xx.c
+++ head/sys/contrib/ncsw/user/env/xx.c
@@ -288,16 +288,10 @@
{
int cpu, type;
/* Check interrupt numbers of all available portals */
- for (cpu = 0, type = 0; XX_PInfo.portal_intr[type][cpu] != 0; cpu++) {
- if (irq == XX_PInfo.portal_intr[type][cpu]) {
- /* Found it! */
- return (1);
- }
- if (XX_PInfo.portal_intr[type][cpu + 1] == 0) {
- type++;
- cpu = 0;
- }
- }
+ for (type = 0; type < 2; type++)
+ for (cpu = 0; cpu < MAXCPU; cpu++)
+ if (irq == XX_PInfo.portal_intr[type][cpu])
+ return (1);
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 6, 12:42 PM (19 m, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30969385
Default Alt Text
D21988.id.diff (695 B)

Event Timeline