diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-01-06 11:38:14 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-01-06 11:38:14 -0700 |
commit | 363139a1adfd085f8f4091ada87263f0283b79ae (patch) | |
tree | 38d7a66c2069b0c051e831874a3b795692fba1a4 /crypto/ablkcipher.c | |
parent | 61edc9fe136f2660255c74e83f60215a88b80379 (diff) | |
download | linux-crypto-363139a1adfd085f8f4091ada87263f0283b79ae.tar.gz linux-crypto-363139a1adfd085f8f4091ada87263f0283b79ae.zip |
dmaengine: centralize channel allocation, introduce dma_find_channel
Allowing multiple clients to each define their own channel allocation
scheme quickly leads to a pathological situation. For memory-to-memory
offload all clients can share a central allocator.
This simply moves the existing async_tx allocator to dmaengine with
minimal fixups:
* async_tx.c:get_chan_ref_by_cap --> dmaengine.c:nth_chan
* async_tx.c:async_tx_rebalance --> dmaengine.c:dma_channel_rebalance
* split out common code from async_tx.c:__async_tx_find_channel -->
dma_find_channel
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'crypto/ablkcipher.c')
0 files changed, 0 insertions, 0 deletions