Skip to content
Snippets Groups Projects
Commit c2faa05d authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

wishbone: remove mutex use from interrupt handler

Previously, the interrupt handler popped the data from the hardware.
To do this, it needed to lock the target buffers, guarded by a mutex.
Unfortunately, that can cause the interrupt handler to sleep! bad!

This patch moves the waitq and fasync structure to the wishbone structure
which is always present.  Then, the interrupt handler need only wake up any
threads blocked waiting for data.  The read/poll functions invoke the
processing of data from the hardware, instead.
parent de8e86da
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment