Count interrupts as soon as possible. This makes sure interrupts are

counted even when there are no handlers.
This commit is contained in:
marcel 2003-01-06 00:25:31 +00:00
parent 1f91e9821c
commit 5cf2875fc6

View File

@ -338,6 +338,9 @@ ia64_dispatch_intr(void *frame, unsigned long vector)
if (i == NULL)
return; /* no ithread for this vector */
if (i->cntp)
atomic_add_long(i->cntp, 1);
ithd = i->ithd;
KASSERT(ithd != NULL, ("interrupt vector without a thread"));
@ -348,9 +351,6 @@ ia64_dispatch_intr(void *frame, unsigned long vector)
if (TAILQ_EMPTY(&ithd->it_handlers))
return;
if (i->cntp)
atomic_add_long(i->cntp, 1);
/*
* Handle a fast interrupt if there is no actual thread for this
* interrupt by calling the handler directly without Giant. Note