summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/files.acpi
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-08-03 15:08:06 +0000
committermikeb <mikeb@openbsd.org>2016-08-03 15:08:06 +0000
commitab46522a10f02fdbf9c89b607f13666e2908eded (patch)
tree6a6f557ac1bac9b3d7c6eeda4ba5670d6979e8f2 /sys/dev/acpi/files.acpi
parentUse an atomic operation to clear pending event bits (diff)
downloadwireguard-openbsd-ab46522a10f02fdbf9c89b607f13666e2908eded.tar.xz
wireguard-openbsd-ab46522a10f02fdbf9c89b607f13666e2908eded.zip
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 'sys/dev/acpi/files.acpi')
0 files changed, 0 insertions, 0 deletions