aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorRobert Baldyga <[email protected]>2015-08-07 10:26:47 +0000
committerVinod Koul <[email protected]>2015-08-17 17:17:43 +0000
commit05aa1a77dcf1b9f9c4fedf09a0a53e15d6b21738 (patch)
tree4f6401fd10277fc91f45aa7b823f780a8e1c50e5 /tools/perf/scripts/python/sched-migration.py
parentLinux 4.2-rc7 (diff)
downloadkernel-05aa1a77dcf1b9f9c4fedf09a0a53e15d6b21738.tar.gz
kernel-05aa1a77dcf1b9f9c4fedf09a0a53e15d6b21738.zip
dmaengine: fix balance of privatecnt inc/dec operations
This patch increments privatecnt value and set DMA_PRIVATE in device caps in dma_request_slave_channel() function. This is needed to keep privatecnt increment/decrement balance. As function dma_release_channel() decrements privatecnt counter, we need to increment it when channel is requested. Otherwise privatecnt drops into negatives after few dma_release_channel() calls. Reported-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Robert Baldyga <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions