powerpc: copy_thread don't set PPR in user interrupt frame regs
authorNicholas Piggin <npiggin@gmail.com>
Sat, 25 Mar 2023 12:29:04 +0000 (22:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 11 Apr 2023 13:13:33 +0000 (23:13 +1000)
commit89fb39134ae3b1e1f207af44a037721d92b32f70
tree9ffddae06546881ea96ad1c8e7798420fb39ee23
parentd195ce4695ca1061993424e2d6c8995e5fc81606
powerpc: copy_thread don't set PPR in user interrupt frame regs

syscalls do not set the PPR field in their interrupt frame and
return from syscall always sets the default PPR for userspace,
so setting the value in the ret_from_fork frame is not necessary
and mildly inconsistent. Remove it.

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