From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932723AbcFTPAe (ORCPT ); Mon, 20 Jun 2016 11:00:34 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:32804 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755426AbcFTPAF (ORCPT ); Mon, 20 Jun 2016 11:00:05 -0400 From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Andy Lutomirski , Peter Zijlstra , Rik van Riel , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner Subject: [PATCH 2/2] x86/entry: Inline enter_from_user_mode Date: Mon, 20 Jun 2016 16:58:30 +0200 Message-Id: <1466434712-31440-3-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1466434712-31440-1-git-send-email-pbonzini@redhat.com> References: <1466434712-31440-1-git-send-email-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Rik van Riel Cc: H. Peter Anvin Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Paolo Bonzini --- arch/x86/entry/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index 618bc61d35b7..9e1e27d31c6d 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -40,7 +40,7 @@ static struct thread_info *pt_regs_to_thread_info(struct pt_regs *regs) #ifdef CONFIG_CONTEXT_TRACKING /* Called on entry from user mode with IRQs off. */ -__visible void enter_from_user_mode(void) +__visible inline void enter_from_user_mode(void) { CT_WARN_ON(ct_state() != CONTEXT_USER); user_exit_irqoff(); -- 1.8.3.1