x86/entry/64: Remove thread_struct::sp0
authorAndy Lutomirski <luto@kernel.org>
Thu, 2 Nov 2017 07:59:16 +0000 (00:59 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Nov 2017 10:04:48 +0000 (11:04 +0100)
commitd375cf1530595e33961a8844192cddab913650e3
tree887429bbeeef5048ed511d07a5d8078101129bec
parentcd493a6deb8b78eca280d05f7fa73fd69403ae29
x86/entry/64: Remove thread_struct::sp0

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>
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