powerpc/mpc83xx: Add the missing set_freezable() for agent_thread_fn()
authorKevin Hao <haokexin@gmail.com>
Thu, 21 Dec 2023 04:45:08 +0000 (12:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Dec 2023 11:10:13 +0000 (22:10 +1100)
commit6addc560e69cd1b2e68ef43ad62a878ac1956f51
tree157d88c95496d91cdbaab9a989e56f9f65c193dc
parent9ec1d7486e2520b4898d7f8e1ec3acc7c13c8dc8
powerpc/mpc83xx: Add the missing set_freezable() for agent_thread_fn()

The kernel thread function agent_thread_fn() invokes the try_to_freeze()
in its loop. But all the kernel threads are non-freezable by default.
So if we want to make a kernel thread to be freezable, we have to invoke
set_freezable() explicitly.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231221044510.1802429-2-haokexin@gmail.com
arch/powerpc/platforms/83xx/suspend.c