Rework the deferred interrupt loop
authormikeb <mikeb@openbsd.org>
Mon, 26 Jun 2017 18:42:23 +0000 (18:42 +0000)
committermikeb <mikeb@openbsd.org>
Mon, 26 Jun 2017 18:42:23 +0000 (18:42 +0000)
commit398942c680fee77c542dfc971ea3431c14f3f87f
tree09e7e977872fbdf63132441fa23b57e21d7c57c4
parent4b71a68eb366e784639bc6e304a4a273b7f4b0eb
Rework the deferred interrupt loop

By performing a task_add an interrupt handler can rely on the
taskq_thread to invoke it again with an additional benefit of
being able to sched_pause when required. In the long run more
than 99.8% of calls do not require an additional iteration.
sys/dev/pv/hyperv.c