mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
facetimehd: add channel waitqueue
add a per channel waitqueue to be able to have more than one ringbuffer entry in flight. Signed-off-by: Sven Schnelle <svens@stackframe.org>
This commit is contained in:
@@ -56,11 +56,10 @@ struct fw_channel {
|
||||
u32 size;
|
||||
u32 source;
|
||||
u32 type;
|
||||
int tx_lock;
|
||||
int rx_lock;
|
||||
struct fthd_ringbuf ringbuf;
|
||||
spinlock_t lock;
|
||||
|
||||
/* waitqueue for signaling completion */
|
||||
wait_queue_head_t wq;
|
||||
char *name;
|
||||
};
|
||||
|
||||
@@ -75,9 +74,6 @@ struct fthd_private {
|
||||
/* lock for synchronizing with irq/workqueue */
|
||||
spinlock_t io_lock;
|
||||
|
||||
/* waitqueue for signaling command completion */
|
||||
wait_queue_head_t cmd_wq;
|
||||
|
||||
/* Mapped PCI resources */
|
||||
void __iomem *s2_io;
|
||||
u32 s2_io_len;
|
||||
|
||||
Reference in New Issue
Block a user