diff options
| author | Dafna Hirschfeld <dafna.hirschfeld@collabora.com> | 2020-06-26 10:51:40 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-19 10:48:12 +0200 |
| commit | b512ab7a85268b3d43d8c504a3e84dbdd923c52b (patch) | |
| tree | 8fdf33fdf47118aed208983f7515af3ce0001751 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | media: staging: rkisp1: stats: replace spin_lock_irqsave with spin_lock_irq (diff) | |
| download | linux-b512ab7a85268b3d43d8c504a3e84dbdd923c52b.tar.gz linux-b512ab7a85268b3d43d8c504a3e84dbdd923c52b.zip | |
media: staging: rkisp1: stats: replace locks wq_lock, irq_lock with one lock
This patch removes two locks in the rkisp1_stats struct:
- The mutex 'wq_lock' that is used to protect the buffers list 'stat'
- The spin_lock 'irq_lock' that is used to protect the
variable 'is_streaming'
It replaces them with one spin_lock 'lock' that protects
both the buffers list and the 'is_streaming' variable.
In later patch the reading of the statistics will move to
the isr so there will be no need for the mutex 'wq_lock'
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
