x86/power/32: Move SYSENTER MSR restoration to fix_processor_context()
authorAndy Lutomirski <luto@kernel.org>
Thu, 14 Dec 2017 21:19:06 +0000 (13:19 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 15 Dec 2017 11:18:29 +0000 (12:18 +0100)
commit896c80bef4d3b357814a476663158aaf669d0fb3
tree860936a43300074679f02232384b8fb8d14b32ff
parent090edbe23ff57940fca7f57d9165ce57a826bd7a
x86/power/32: Move SYSENTER MSR restoration to fix_processor_context()

x86_64 restores system call MSRs in fix_processor_context(), and
x86_32 restored them along with segment registers.  The 64-bit
variant makes more sense, so move the 32-bit code to match the
64-bit code.

No side effects are expected to runtime behavior.

Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Zhang Rui <rui.zhang@intel.com>
Link: http://lkml.kernel.org/r/65158f8d7ee64dd6bbc6c1c83b3b34aaa854e3ae.1513286253.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/power/cpu.c