Skip to content

Commit 6addc56

Browse files
haokexinmpe
authored andcommitted
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
1 parent 9ec1d74 commit 6addc56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/powerpc/platforms/83xx/suspend.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ static int mpc83xx_suspend_begin(suspend_state_t state)
261261

262262
static int agent_thread_fn(void *data)
263263
{
264+
set_freezable();
265+
264266
while (1) {
265267
wait_event_interruptible(agent_wq, pci_pm_state >= 2);
266268
try_to_freeze();

0 commit comments

Comments
 (0)