powerpc: copy_thread don't set _TIF_RESTOREALL
authorNicholas Piggin <npiggin@gmail.com>
Sat, 25 Mar 2023 12:29:03 +0000 (22:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 11 Apr 2023 13:13:33 +0000 (23:13 +1000)
commitd195ce4695ca1061993424e2d6c8995e5fc81606
tree980e31fa5e29ce9c3ea8157bbb1a21fd65080a34
parentb504b6aade0403eaffa9ce51b8207d710705beaf
powerpc: copy_thread don't set _TIF_RESTOREALL

In the kernel user thread path, don't set _TIF_RESTOREALL because
the thread is required to call kernel_execve() before it returns,
which will set _TIF_RESTOREALL if necessary via start_thread().

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230325122904.2375060-8-npiggin@gmail.com
arch/powerpc/kernel/interrupt_64.S
arch/powerpc/kernel/process.c