PERFORCE change 99595 for review
Paolo Pisati
piso at FreeBSD.org
Mon Jun 19 10:26:43 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=99595
Change 99595 by piso at piso_newluxor on 2006/06/19 10:26:28
Anticipate ie->ie_handlers emptiness check
Affected files ...
.. //depot/projects/soc2006/intr_filter/sparc64/sparc64/intr_machdep.c#2 edit
Differences ...
==== //depot/projects/soc2006/intr_filter/sparc64/sparc64/intr_machdep.c#2 (text+ko) ====
@@ -236,11 +236,11 @@
struct intr_vector *iv;
struct intr_event *ie;
struct intr_handler *ih;
- int error, thread;
+ int error = 0, thread;
iv = cookie;
ie = iv->iv_event;
- if (ie == NULL) {
+ if (ie == NULL || TAILQ_EMPTY(&ie->ie_handlers)) {
intr_stray_vector(iv);
return;
}
@@ -261,10 +261,7 @@
/* Schedule a heavyweight interrupt process. */
if (thread)
error = intr_event_schedule_thread(ie);
- else if (TAILQ_EMPTY(&ie->ie_handlers))
- error = EINVAL;
- else
- error = 0;
+
if (error == EINVAL)
intr_stray_vector(iv);
}
More information about the p4-projects
mailing list