]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: Convert ID allocation to an IDA
authorMatthew Wilcox <mawilcox@microsoft.com>
Thu, 15 Dec 2016 16:57:51 +0000 (08:57 -0800)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Jan 2017 04:16:32 +0000 (09:46 +0530)
commit907fedf6d14307609b6f1b572ef2cab697568268
treea2f5fe47fdecf0c5edbaa8a64c3e3c6cad8bd661
parenta780c2d5637d959a6133b349d5166a4148a42da3
dmaengine: Convert ID allocation to an IDA

dmaengine currently uses an IDR to allocate DMA IDs, but it only needs
to know whether IDs are in use or not; the ID to pointer functionality
of the IDR is unused.  That means it can use the more space-efficient IDA.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c