powerpc: Rearrange copy_thread child stack creation
authorNicholas Piggin <npiggin@gmail.com>
Sun, 27 Nov 2022 12:49:29 +0000 (22:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:54:07 +0000 (17:54 +1100)
commitbc0677363d0ffaec0c56685291e97b080116976c
treed4be47611d9691ac53329eafd432b1b4853daa45
parent32c5209214bd8d4f8c4e9d9b630ef4c671f58e79
powerpc: Rearrange copy_thread child stack creation

This makes it a bit clearer where the stack frame is created, and will
allow easier use of some of the stack offset constants in a later
change.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221127124942.1665522-5-npiggin@gmail.com
arch/powerpc/kernel/process.c