diff options
author | Marius Strobl <marius@FreeBSD.org> | 2005-04-30 16:19:04 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2005-04-30 16:19:04 +0000 |
commit | 8ab91ddc082c887e6fd9d4829fb3d829b9af4962 (patch) | |
tree | 42ad726a39cbcc8653eabb24b7c6261c2bc2aea5 /sys | |
parent | 6bd958bd4a5285e3f39387f0af52cde9bd62862b (diff) |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/intr_machdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/sparc64/sparc64/intr_machdep.c b/sys/sparc64/sparc64/intr_machdep.c index ec1f9c02ee2d0..f460f20989cda 100644 --- a/sys/sparc64/sparc64/intr_machdep.c +++ b/sys/sparc64/sparc64/intr_machdep.c @@ -240,12 +240,13 @@ intr_execute_handlers(void *cookie) iv = cookie; ithd = iv->iv_ithd; - MPASS(ithd != NULL); - ih = TAILQ_FIRST(&ithd->it_handlers); - if (ih->ih_flags & IH_FAST) { + if (ithd == NULL) + ih = NULL; + else + ih = TAILQ_FIRST(&ithd->it_handlers); + if (ih != NULL && ih->ih_flags & IH_FAST) { /* Execute fast interrupt handlers directly. */ - critical_enter(); TAILQ_FOREACH(ih, &ithd->it_handlers, ih_next) { MPASS(ih->ih_flags & IH_FAST && ih->ih_argument != NULL); @@ -253,12 +254,11 @@ intr_execute_handlers(void *cookie) __func__, ih->ih_handler, ih->ih_argument); ih->ih_handler(ih->ih_argument); } - critical_exit(); return; } /* Schedule a heavyweight interrupt process. */ - error = ithread_schedule(iv->iv_ithd); + error = ithread_schedule(ithd); if (error == EINVAL) intr_stray_vector(iv); } |