aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorSatendra Singh Thakur <[email protected]>2017-12-28 11:29:35 -0500
committerMauro Carvalho Chehab <[email protected]>2018-01-03 05:29:42 -0500
commitce4686702f8f56e14388ab452f0b5201b8277872 (patch)
treebc94899e0cf8c2d213d7ea625c71b8fde2eba0ed /tools/perf/scripts/python/intel-pt-events.py
parent0097ff8e3ea0a737ee3c528ab7c85c35bef78e28 (diff)
media: vb2: Fix a bug about unnecessary calls to queue cancel and free
Currently, there's a logic with checks if *count is non-zero, q->num_buffers is zero and q->memory is different than memory. That's flawed when the device is initialized, or after the queues are freed, as it does, unnecessary calls to __vb2_queue_cancel() and __vb2_queue_free(). That can be avoided by making sure that q->memory is set to VB2_MEMORY_UNKNOWN at vb2_core_queue_init(), and adding such check at the loop. [[email protected]: fix checkpatch issues and improve the patch, by setting q->memory to zero at vb2_core_queue_init] Signed-off-by: Satendra Singh Thakur <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions