projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b394b2
)
dmaengine: idma64: replace spin_lock_irqsave with spin_lock
author
Zhaoxiong Yuan
<
[email protected]
>
Fri, 7 Sep 2018 19:02:10 +0000
(06:02 +1100)
committer
Vinod Koul
<
[email protected]
>
Tue, 11 Sep 2018 07:43:40 +0000
(13:13 +0530)
idma64_chan_irq() is invoked in hardirq handle function, it is unnecessary
to call spin_lock_irqsave.
Signed-off-by: Zhaoxiong Yuan <
[email protected]
>
Signed-off-by: Vinod Koul <
[email protected]
>
drivers/dma/idma64.c
patch
|
blob
|
history
diff --git
a/drivers/dma/idma64.c
b/drivers/dma/idma64.c
index 1fbf9cb9b74297c9daa6005c520fa54f90c8dc45..5b9c1566ad739415f9838cd31f799e19e214fd8c 100644
(file)
--- a/
drivers/dma/idma64.c
+++ b/
drivers/dma/idma64.c
@@
-142,9
+142,8
@@
static void idma64_chan_irq(struct idma64 *idma64, unsigned short c,
{
struct idma64_chan *idma64c = &idma64->chan[c];
struct idma64_desc *desc;
- unsigned long flags;
- spin_lock
_irqsave(&idma64c->vchan.lock, flags
);
+ spin_lock
(&idma64c->vchan.lock
);
desc = idma64c->desc;
if (desc) {
if (status_err & (1 << c)) {
@@
-161,7
+160,7
@@
static void idma64_chan_irq(struct idma64 *idma64, unsigned short c,
if (idma64c->desc == NULL || desc->status == DMA_ERROR)
idma64_stop_transfer(idma64c);
}
- spin_unlock
_irqrestore(&idma64c->vchan.lock, flags
);
+ spin_unlock
(&idma64c->vchan.lock
);
}
static irqreturn_t idma64_irq(int irq, void *dev)