powerpc/ps3: Add missing set_freezable() for ps3_probe_thread()
authorKevin Hao <haokexin@gmail.com>
Thu, 21 Dec 2023 04:45:10 +0000 (12:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Dec 2023 11:10:20 +0000 (22:10 +1100)
commitccc0f7b7673e63139ba9d916f4567d4fadb14b55
tree425ece54be3cf2dd2a98cdc8dd7015df8d7d7348
parent11611d254c15cce1f58431b2965c6edb5aa7e610
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
arch/powerpc/platforms/ps3/device-init.c