x86/entry/64: Remove thread_struct::sp0
authorAndy Lutomirski <luto@kernel.org>
Thu, 2 Nov 2017 07:59:16 +0000 (00:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:26:18 +0000 (14:26 +0100)
commitc6f563cd1393521c3bd74730cb972f4ec373694a
tree9f680e9eb1b91d1f5c94d6a2b3c9de8f5dc3fbf0
parent266a0b19177e9ad7767aed90e14033dd46a8f000
x86/entry/64: Remove thread_struct::sp0

commit d375cf1530595e33961a8844192cddab913650e3 upstream.

On x86_64, we can easily calculate sp0 when needed instead of
storing it in thread_struct.

On x86_32, a similar cleanup would be possible, but it would require
cleaning up the vm86 code first, and that can wait for a later
cleanup series.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/719cd9c66c548c4350d98a90f050aee8b17f8919.1509609304.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/compat.h
arch/x86/include/asm/processor.h
arch/x86/include/asm/switch_to.h
arch/x86/kernel/process_64.c