diff options
author | 2023-12-21 12:45:09 +0800 | |
---|---|---|
committer | 2023-12-21 22:10:16 +1100 | |
commit | 11611d254c15cce1f58431b2965c6edb5aa7e610 (patch) | |
tree | 4171961573980807d372516d7a19cceda431431d /tools/perf/scripts/python/gecko.py | |
parent | powerpc/mpc83xx: Add the missing set_freezable() for agent_thread_fn() (diff) | |
download | wireguard-linux-11611d254c15cce1f58431b2965c6edb5aa7e610.tar.xz wireguard-linux-11611d254c15cce1f58431b2965c6edb5aa7e610.zip |
powerpc/mpc83xx: 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:
wait_event_interruptible();
try_to_freeze();
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: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231221044510.1802429-3-haokexin@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions