x86/asm/entry/32: Stop caching MSR_IA32_SYSENTER_ESP in tss.sp1
authorAndy Lutomirski <luto@amacapital.net>
Thu, 2 Apr 2015 19:41:45 +0000 (12:41 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 06:30:44 +0000 (08:30 +0200)
commitcf9328cc9989e028fdc64d8c0a7b1b043dc96735
tree9e84c35b8509621f893621a20484d3ba20ae8b15
parentff8287f36381deff729aa4e7b02296a080519fd0
x86/asm/entry/32: Stop caching MSR_IA32_SYSENTER_ESP in tss.sp1

We write a stack pointer to MSR_IA32_SYSENTER_ESP exactly once,
and we unnecessarily cache the value in tss.sp1.  We never
read the cached value.

Remove all of the caching.  It serves no purpose.

Suggested-by: Denys Vlasenko <dvlasenk@redhat.com>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/05a0163eb33ef5208363f0015496855da7cebadd.1428002830.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c