Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1630374imj; Fri, 8 Feb 2019 04:53:31 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia951fvQg6GJJIRgV9BGpWhgz2Ho7pCO7eB92c3Okc1eN74YKtAcubNW8YAJvVw59CemA/S X-Received: by 2002:a63:8149:: with SMTP id t70mr20753243pgd.172.1549630411088; Fri, 08 Feb 2019 04:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549630411; cv=none; d=google.com; s=arc-20160816; b=O8eq5L6dni8GjAsDYrM2GcY4763BD/835ZUcVVf2cOb7QOVKUsmJl1WSdu4c8njAi+ ST/2H0F+Ea/hyF8cNAsGGJcpJrzDifotf89kZ83WIyB5ihrVuNr1Is8NG8Z6cjf2wV3V rZ2Y69AmLys5cGz6dIUvIooCE1MI444AB7h8W1b3zKz9bJxmnY0j8FLe2CdP5c5uBsDF iFsOUtYo9pEO0kBsyW5u2pU8BoIwJ+1vj+4XYhIuU0AT0m5l3fGgEltX89DffUZw3wKo 96pVkWLDHMwrysO/AlLuMWk14l+HyA3gFtxir2+EKxi2OXUGBKK8I4c13HqmACB+GzMS k8nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=jmw26VL5DlbU5xPzwi20JA1iGuP0Zz1UBCkxt3nBWKk=; b=HsyR7uwU1YvTAe7tPTJuvwAuW4yG6w19yGH170uz5VLjgcAssABRaI0Uf2ltcfff2p L8ENRmiBmvCjYqxN8H7Xn6ES8xfilZylopMjlWbh3jhJ917Szs+78xpitCZ8wtgKuDUQ 7rYJiV/ZIzV4WiB8Ts0rH6frRxlD41fUFar7NPJP65IY2+TCqGlx2UB8SnS+c/UWTpM6 jL1o0MtOLCybfaclfHj8miXxNl1MLgTrEeyo77j6oADawJfcQPRjQGb8+feaN0RJjpp3 aFcJnIg5U53Mp20p5a5YtRn3EUYN3aSqtNheywG3zOTJmv0Jt8shteVs5ro4skvbErmi ztCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=od0pUUpA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si2036597pgc.475.2019.02.08.04.53.14; Fri, 08 Feb 2019 04:53:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=od0pUUpA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727877AbfBHMwv (ORCPT + 99 others); Fri, 8 Feb 2019 07:52:51 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:3608 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbfBHMwt (ORCPT ); Fri, 8 Feb 2019 07:52:49 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43ww7y5N6Gz9v0dK; Fri, 8 Feb 2019 13:52:46 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=od0pUUpA; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id V40e50qwJ-Fe; Fri, 8 Feb 2019 13:52:46 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43ww7y4LgXz9v0dH; Fri, 8 Feb 2019 13:52:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1549630366; bh=jmw26VL5DlbU5xPzwi20JA1iGuP0Zz1UBCkxt3nBWKk=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=od0pUUpAS5EB4OeZ9qmt7dQt7q1e4qlKlLKojyRt7MCwL7SnbBaoRqFstGnSJ+PHO x6JU3JyCxOAvkT0J+BeLGrhVMACXMt4JxapnssbDKbb+9rO/BFRdq2HpUYduAcBG5M Y/+JJJwdYigmqra1SfrSVcfI1alg3pBadolA4R9o= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E7FA48B8D7; Fri, 8 Feb 2019 13:52:47 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id tSQ4rcdjwaCh; Fri, 8 Feb 2019 13:52:47 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id CDB2E8B756; Fri, 8 Feb 2019 13:52:47 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 99C8F653E8; Fri, 8 Feb 2019 12:52:47 +0000 (UTC) Message-Id: <4f699ac0dd85d4108f240dc7bdfba340e5cb835b.1549630193.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [RFC PATCH v1 15/16] powerpc/32: Remove MSR_PR test when returning from syscall To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nicholas Piggin Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 8 Feb 2019 12:52:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syscalls are from user only, so we can account time without checking whether returning to kernel or user as it will only be user. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 137bd2103051..0927d5ff1e79 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -482,12 +482,7 @@ BEGIN_FTR_SECTION lwarx r7,0,r1 END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) stwcx. r0,0,r1 /* to clear the reservation */ -#ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE - andi. r4,r8,MSR_PR - beq 3f ACCOUNT_CPU_USER_EXIT(r2, r5, r7) -3: -#endif lwz r4,_LINK(r1) lwz r5,_CCR(r1) mtlr r4 -- 2.13.3