Count interrupts as soon as possible. This makes sure interrupts are
counted even when there are no handlers.
This commit is contained in:
parent
1f91e9821c
commit
5cf2875fc6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user