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:
snchen
2024-07-26 11:30:11 +08:00
committed by mobile promotions
parent d4a130e720
commit 06c838e81c

View File

@@ -688,7 +688,6 @@ static int tegra_channel_kthread_capture_enqueue(void *data)
struct tegra_channel_buffer *buf;
unsigned long flags;
set_freezable();
allow_signal(SIGINT);
while (1) {
try_to_freeze();
@@ -732,6 +731,7 @@ static int tegra_channel_kthread_capture_dequeue(void *data)
struct tegra_channel_buffer *buf;
set_freezable();
allow_signal(SIGINT);
while (1) {
try_to_freeze();