powerpc/64: ret_from_fork avoid restoring regs twice
authorNicholas Piggin <npiggin@gmail.com>
Sat, 25 Mar 2023 12:29:00 +0000 (22:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 11 Apr 2023 13:13:32 +0000 (23:13 +1000)
commit5088a6246bd3dcfea504376f356683f750136f7f
tree5c05ad5753403bafde67c2575001e9de92efe33c
parentaf5ca9d5c8b45244b237d7a5534e1ec2d01cce8e
powerpc/64: ret_from_fork avoid restoring regs twice

If the system call return path always restores NVGPRs then there is no
need for ret_from_fork to do it. The HANDLER_RESTORE_NVGPRS does the
right thing for this.

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