powerpc: convert to copy_thread_tls

Commit 3033f14ab7 ("clone: support passing tls argument via C rather
than pt_regs magic") introduced the HAVE_COPY_THREAD_TLS option. Use it
to avoid a subtle assumption about the argument ordering of clone type
syscalls.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190827033010.28090-2-npiggin@gmail.com
This commit is contained in:
Nicholas Piggin 2019-08-27 13:30:06 +10:00 • committed by Michael Ellerman
commit facd04a904
2 changed files with 6 additions and 4 deletions