diff options
| author | Kevin Hao <haokexin@gmail.com> | 2023-12-21 05:22:28 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-02-16 13:46:31 +0300 |
| commit | 730ffa9c5c76703b4c7f9c7126287957dc50f1e0 (patch) | |
| tree | 0edebd2c3ef1b8543be3fab1cba54fcb9d9dd6b8 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 7c17c55248327d70b065378eaf2e8be0f22593ce (diff) | |
| download | linux-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 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
