powerpc: copy_thread remove unused pkey code
authorNicholas Piggin <npiggin@gmail.com>
Sat, 25 Mar 2023 12:28:57 +0000 (22:28 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 11 Apr 2023 13:13:32 +0000 (23:13 +1000)
commitc013e9f2bbe1d2be5e1c7f4a84216cd10837f20d
tree97ce003c52b499a85bc3f804cfad2ee552756609
parent78f0929884d4811c225fd2c57ecc602c84c07392
powerpc: copy_thread remove unused pkey code

The pkey registers (AMR, IAMR) do not get loaded from the switch frame
so it is pointless to save anything there. Remove the dead code.

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