]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/dma/mv_xor.h
dma: mv_xor: Reduce interrupts by enabling EOD only when needed
authorLior Amsalem <alior@marvell.com>
Wed, 27 Aug 2014 13:52:53 +0000 (10:52 -0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 23 Sep 2014 14:47:01 +0000 (20:17 +0530)
commitba87d13721b6fe4a2479871dc4f77c5bd8db3c32
treecfbfdfead1eaac70a3cc9509e5339010e7ca094c
parent0e7488ed01235fdd24ce7f0295dbbea0d45311bb
dma: mv_xor: Reduce interrupts by enabling EOD only when needed

This commit unmasks the end-of-chain interrupt and removes the
end-of-descriptor command setting on all transactions, except those
explicitly flagged with DMA_PREP_INTERRUPT.

This allows to raise an interrupt only on chain completion, instead of
on each descriptor completion, which reduces interrupt count.

Signed-off-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h