From: Kevin Hao Date: Thu, 21 Dec 2023 04:45:10 +0000 (+0800) Subject: powerpc/ps3: Add missing set_freezable() for ps3_probe_thread() X-Git-Tag: v6.8-rc1~202^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccc0f7b7673e63139ba9d916f4567d4fadb14b55;p=thirdparty%2Flinux.git 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 Acked-by: Geoff Levand Signed-off-by: Michael Ellerman Link: https://msgid.link/20231221044510.1802429-4-haokexin@gmail.com --- diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arch/powerpc/platforms/ps3/device-init.c index e87360a0fb40d..878bc160246e2 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();