diff options
author | Kevin Hao <haokexin@gmail.com> | 2023-12-21 12:45:10 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-12-21 22:10:20 +1100 |
commit | ccc0f7b7673e63139ba9d916f4567d4fadb14b55 (patch) | |
tree | 425ece54be3cf2dd2a98cdc8dd7015df8d7d7348 /arch/powerpc/platforms | |
parent | 11611d254c15cce1f58431b2965c6edb5aa7e610 (diff) |
powerpc/ps3: Add missing set_freezable() for ps3_probe_thread()
The kernel thread function ps3_probe_thread() 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>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231221044510.1802429-4-haokexin@gmail.com
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/ps3/device-init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arch/powerpc/platforms/ps3/device-init.c index e87360a0fb40..878bc160246e 100644 --- a/arch/powerpc/platforms/ps3/device-init.c +++ b/arch/powerpc/platforms/ps3/device-init.c @@ -827,6 +827,7 @@ static int ps3_probe_thread(void *data) if (res) goto fail_free_irq; + set_freezable(); /* Loop here processing the requested notification events. */ do { try_to_freeze(); |