diff options
| author | Logan Gunthorpe <logang@deltatee.com> | 2019-12-16 12:01:19 -0700 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2019-12-24 10:18:32 +0530 |
| commit | 8ad342a863590b24ce77681b7e081363fb3333f7 (patch) | |
| tree | 393b6621b115e7cc07ff47e75ab897f929902654 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | dmaengine: Move dma_channel_rebalance() infrastructure up in code (diff) | |
| download | linux-8ad342a863590b24ce77681b7e081363fb3333f7.tar.gz linux-8ad342a863590b24ce77681b7e081363fb3333f7.zip | |
dmaengine: Add reference counting to dma_device struct
Adding a reference count helps drivers to properly implement the unbind
while in use case.
References are taken and put every time a channel is allocated or freed.
Once the final reference is put, the device is removed from the
dma_device_list and a release callback function is called to signal
the driver to free the memory.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20191216190120.21374-5-logang@deltatee.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
