x86/process: Unify copy_thread_tls()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 11 Nov 2019 22:03:16 +0000 (23:03 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 16 Nov 2019 10:23:59 +0000 (11:23 +0100)
commit2fff071d28b54f050f62654dad4ec111b8416d8e
tree03b6d5c3772dd8b9a9c445f03b58826d083720df
parent8c40397f22a4ff7996d3abdc2d9d1d90f9fc8054
x86/process: Unify copy_thread_tls()

While looking at the TSS io bitmap it turned out that any change in that
area would require identical changes to copy_thread_tls(). The 32 and 64
bit variants share sufficient code to consolidate them into a common
function to avoid duplication of upcoming modifications.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
arch/x86/include/asm/ptrace.h
arch/x86/include/asm/switch_to.h
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c