Remove unused interrupt handler priority
@@ -35,8 +35,6 @@ typedef struct intr_handler {
intr_event_t *ih_event; /* event we are connected to */
void *ih_argument; /* argument to pass to filter/service routines */
const char *ih_name; /* name of the handler */
- /* XXX: do we really need ih_prio? it has no real use cases so far... */
- prio_t ih_prio; /* handler's priority (sort key for ie_handlers) */
ih_flags_t ih_flags; /* refer to IH_* flags description above */
} intr_handler_t;
@@ -91,19 +89,10 @@ static void ie_disable(intr_event_t *ie) {
static void intr_event_insert_handler(intr_event_t *ie, intr_handler_t *ih) {
SCOPED_SPIN_LOCK(&ie->ie_lock);
- /* Add new handler according to it's priority */
- intr_handler_t *it;
- TAILQ_FOREACH (it, &ie->ie_handlers, ih_link)
- if (ih->ih_prio > it->ih_prio)
- break;
-
/* Enable interrupt if this is the first handler. */
if (TAILQ_EMPTY(&ie->ie_handlers))
ie_enable(ie);
- if (it)
- TAILQ_INSERT_BEFORE(it, ih, ih_link);
- else
TAILQ_INSERT_TAIL(&ie->ie_handlers, ih, ih_link);
}
@@ -131,7 +120,6 @@ intr_handler_t *intr_event_add_handler(intr_event_t *ie, ih_filter_t *filter,
ih->ih_event = ie;
ih->ih_argument = arg;
ih->ih_name = name;
- ih->ih_prio = 0;
ih->ih_flags = 0;
intr_event_insert_handler(ie, ih);
intr_thread_maybe_attach(ie, ih);
