diff options
| author | Andy Lutomirski <[email protected]> | 2017-11-02 07:59:10 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-11-02 10:04:44 +0000 |
| commit | da51da189a24bb9b7e2d5a123be096e51a4695a5 (patch) | |
| tree | 39b88e6bed96687f02eabe22ed211f7bc78c9c0b /net/unix/af_unix.c | |
| parent | x86/entry/32: Pull the MSR_IA32_SYSENTER_CS update code out of native_load_sp0() (diff) | |
| download | kernel-da51da189a24bb9b7e2d5a123be096e51a4695a5.tar.gz kernel-da51da189a24bb9b7e2d5a123be096e51a4695a5.zip | |
x86/entry/64: Pass SP0 directly to load_sp0()
load_sp0() had an odd signature:
void load_sp0(struct tss_struct *tss, struct thread_struct *thread);
Simplify it to:
void load_sp0(unsigned long sp0);
Also simplify a few get_cpu()/put_cpu() sequences to
preempt_disable()/preempt_enable().
Signed-off-by: Andy Lutomirski <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/2655d8b42ed940aa384fe18ee1129bbbcf730a08.1509609304.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
