summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2022-05-10 11:53:05 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-05-13 12:29:39 +0300
commitf9222f8ca18bcb1d55dd749b493b29fd8092fb82 (patch)
tree5daa3437ae5b8a76fe4a678d8c0fd8a1ae59466a /tools/perf/scripts/python/export-to-sqlite.py
parente3891b36364e85914fcb7a535656695a67e876a7 (diff)
downloadlinux-f9222f8ca18bcb1d55dd749b493b29fd8092fb82.tar.xz
media: cec-adap.c: drop activate_cnt, use state info instead
Using an activation counter to decide when the enable or disable the cec adapter is not the best approach and can lead to race conditions. Change this to determining the current status of the adapter, and enable or disable the adapter accordingly. It now only needs to be called whenever there is a chance that the state changes, and it can handle enabling/disabling monitoring as well if needed. This simplifies the code and it should be a more robust approach as well. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions