Skip to content

Commit ccc0f7b

Browse files
haokexinmpe
authored andcommitted
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
1 parent 11611d2 commit ccc0f7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/powerpc/platforms/ps3/device-init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ static int ps3_probe_thread(void *data)
827827
if (res)
828828
goto fail_free_irq;
829829

830+
set_freezable();
830831
/* Loop here processing the requested notification events. */
831832
do {
832833
try_to_freeze();

0 commit comments

Comments
 (0)