summaryrefslogtreecommitdiff
path: root/sbin/restore
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-08-03 15:08:07 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-08-03 15:08:07 +0000
commitd5e8a41ffadecb1b1e004f7d6eebfbd63371238a (patch)
treef13b51f2437db8d31fe790335f22b39a390e6b57 /sbin/restore
parent0b31645cb70567309e5f7e97786d8813e1e1b35e (diff)
Remove the periodic timer and do rescheduling during Rx completion
This change adds a check into the Rx ring completion routine that schedules an interrupt task to be executed immediately after if consumer index has already advanced itself. The benefit of doing this compared to an additional loop after replenishing the ring (as done in FreeBSD for example) is that first of all this goes through the loop in the taskqueue thread with a yeild check to prevent CPU hogging and second is that it triggers Tx completion as well since interrupt handler runs both.
Diffstat (limited to 'sbin/restore')
0 files changed, 0 insertions, 0 deletions