x86/entry: Inline enter_from_user_mode()
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2016 14:58:30 +0000 (16:58 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 10 Jul 2016 11:33:02 +0000 (13:33 +0200)
commitbe8a18e2e98e04a5def5887d913b267865562448
treef232bfab43edd5d4fbd82cbb16b05c502484b039
parent2e9d1e150abf88cb63e5d34ca286edbb95b4c53d
x86/entry: Inline enter_from_user_mode()

This matches what is already done for prepare_exit_to_usermode(),
and saves about 60 clock cycles (4% speedup) with the benchmark
in the previous commit message.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kvm@vger.kernel.org
Link: http://lkml.kernel.org/r/1466434712-31440-3-git-send-email-pbonzini@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/common.c