mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
vi5: camera: move allow_signal to dequeue
move allow_signal(SIGINT) to tegra_channel_kthread_capture_dequeue to allow user space to break capture thread while capture timeout override to infinite(-1). bug 4737219 Change-Id: Ic166c5e48d67e15e1bf26bb3abc9d2f9070f7cf4 Signed-off-by: snchen <snchen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3182589 Reviewed-by: Anubhav Rai <arai@nvidia.com> Reviewed-by: Narendra Kondapalli <nkondapalli@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d4a130e720
commit
06c838e81c
@@ -688,7 +688,6 @@ static int tegra_channel_kthread_capture_enqueue(void *data)
|
|||||||
struct tegra_channel_buffer *buf;
|
struct tegra_channel_buffer *buf;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
set_freezable();
|
set_freezable();
|
||||||
allow_signal(SIGINT);
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
try_to_freeze();
|
try_to_freeze();
|
||||||
@@ -732,6 +731,7 @@ static int tegra_channel_kthread_capture_dequeue(void *data)
|
|||||||
struct tegra_channel_buffer *buf;
|
struct tegra_channel_buffer *buf;
|
||||||
|
|
||||||
set_freezable();
|
set_freezable();
|
||||||
|
allow_signal(SIGINT);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
try_to_freeze();
|
try_to_freeze();
|
||||||
|
|||||||
Reference in New Issue
Block a user