opnsense-src/sys/dev/smc
Benno Rice 3c463a49eb Switch to using a normal mutex instead of a spin mutex.
We still use the interrupt filter due to performance problems that show up if
we don't.  The main problem seen is that, due to the interrupt being edge
triggered, we occasionally miss interrupts which leads us to not notice that
we can transmit more packets.  Using the new approach, which just schedules
a task on a taskqueue, we are guaranteed to have the task run even if the
interrupt arrived while we were already executing.  If we were to use an
ithread the system would mask the interrupt while the handler is run and we'd
miss interrupts.
2008-06-11 07:26:02 +00:00
..
if_smc.c Switch to using a normal mutex instead of a spin mutex. 2008-06-11 07:26:02 +00:00
if_smcreg.h
if_smcvar.h Switch to using a normal mutex instead of a spin mutex. 2008-06-11 07:26:02 +00:00