diff options
author | Fancy Fang <B47543@freescale.com> | 2013-12-11 18:21:10 +0800 |
---|---|---|
committer | Fancy Fang <B47543@freescale.com> | 2013-12-13 17:10:53 +0800 |
commit | 436d6e483bd19bfc3c7bf03b63bc9f9f5cf077a9 (patch) | |
tree | 82290dfeda305302d0883a177d8525050761efb5 /include | |
parent | cba8575d0a441657702cb2e5da4efc4e473a290b (diff) |
ENGR00291729 PXP: remove a mutex lock from pxp channel
This mutex lock is no longer necessary in PXP dma driver. After
the commit "ENGR00291400 PXP: Organize PXP task queue to be FIFO",
protection fields can be protected by the spin lock in PXP channel
now.
Signed-off-by: Fancy Fang <B47543@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pxp_dma.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/pxp_dma.h b/include/linux/pxp_dma.h index 61b3e7de4c57..613d89f143f9 100644 --- a/include/linux/pxp_dma.h +++ b/include/linux/pxp_dma.h @@ -47,8 +47,9 @@ struct pxp_channel { struct pxp_tx_desc *desc; /* allocated tx-descriptors */ struct list_head queue; /* queued tx-descriptors */ struct list_head list; /* track queued channel number */ - spinlock_t lock; /* protects sg[0,1], queue */ - struct mutex chan_mutex; /* protects status, cookie, free_list */ + spinlock_t lock; /* protects sg[0,1], queue, + * status, cookie, free_list + */ int active_buffer; unsigned int eof_irq; char eof_name[16]; /* EOF IRQ name for request_irq() */ |