summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2023-12-21 05:22:28 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-02-16 13:46:31 +0300
commit730ffa9c5c76703b4c7f9c7126287957dc50f1e0 (patch)
tree0edebd2c3ef1b8543be3fab1cba54fcb9d9dd6b8 /drivers/media/v4l2-core
parent7c17c55248327d70b065378eaf2e8be0f22593ce (diff)
downloadlinux-730ffa9c5c76703b4c7f9c7126287957dc50f1e0.tar.xz
media: pvrusb2: Use wait_event_freezable() for freezable kthread
A freezable kernel thread can enter frozen state during freezing by either calling try_to_freeze() or using wait_event_freezable() and its variants. So for the following snippet of code in a kernel thread loop: try_to_freeze(); wait_event_interruptible(); We can change it to a simple wait_event_freezable() and then eliminate a function call. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/v4l2-core')
0 files changed, 0 insertions, 0 deletions