Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1707496ybb; Fri, 29 Mar 2019 09:40:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOA58DghD+OXHSFQ3T2BLM3TypH/AMUmjte8q+AyI0Q7RpXAXapAK8femOpN0RsP6HcHW6 X-Received: by 2002:a17:902:7c8a:: with SMTP id y10mr8766044pll.232.1553877613523; Fri, 29 Mar 2019 09:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553877613; cv=none; d=google.com; s=arc-20160816; b=EXgo9mng85L0d0ZD2PpaHnmjma6Bc3PPylRbI/7Bv6B5+feWKQxeMs3YkVWVqUNxkH 24HmBb+f4ZrQFjmZiU18SUMblrYHN1qb/cUN+j8h5sAFGhEDbbq0gTtGuq1sn+VKmWcs LC2++35XlSM67R9UreM1F3/cZS35xAc1JoffMO0Em8lJ3vAHAP0DBIc/K/Xq9MCrwCXH GKv239iAMg/4XD/+imocT8qJQP4z7qJWar2wnDTpwCG7SonINYa0tl4mtr9rlkT8xGHu ozsbZRfD2xF+zcX5H128aQTYNVW4iqzo6oI+cZm2hKke6ppkMK19HyZwPGAPFqoitwXn reaw== 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=TaoVG5wFwEOIUvsGtqDN/H3S1+EG59HmBbnH3nVKmnQ=; b=I1H+hEdsE2UUWgad9MvxsbEZl37m1gx3u6tiKGhfDqouFZcMTS00QiSRxBOmqrjz4T UtMZeL7PbmyRPWKpyv6mOq4OW6vhCyBh0RemtbmtsRlm8C3vqH/UNXDyKH+bRQ8Viz4u 4ocP0laLRkfhudtv5q7PGmov47nh2O16VPXAnSHszbFW7HEOwLwLuKHv9Pw4JtMlmtrz kZGxHSwTLYaP3qkuXr6KZ/7MXfhFs/2SM+EyMABLUjJFEfTADtsg9S7dEAO17L9PVAZ6 /N02ixYVZs4irDxBLVPEZfTlLWEO+i2PgM5kt8Onjg6OjIeMT+8s//g3j4lCEFLtECW9 zJ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=J3BB55Bn; 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 m18si2177666pgv.396.2019.03.29.09.39.57; Fri, 29 Mar 2019 09:40:13 -0700 (PDT) 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=J3BB55Bn; 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 S1729952AbfC2QjA (ORCPT + 99 others); Fri, 29 Mar 2019 12:39:00 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:19172 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729878AbfC2Qij (ORCPT ); Fri, 29 Mar 2019 12:38:39 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44W6qw3syVz9tyQk; Fri, 29 Mar 2019 17:38:36 +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=J3BB55Bn; 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 r23YF4bCDfgV; Fri, 29 Mar 2019 17:38:36 +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 44W6qw2ltGz9tyQj; Fri, 29 Mar 2019 17:38:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1553877516; bh=TaoVG5wFwEOIUvsGtqDN/H3S1+EG59HmBbnH3nVKmnQ=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=J3BB55BnINJ5JzvbPrXrf6UP293bSBNNIaIcEuzXRZ4SXj69csedyypA+P9ChtW65 cbPg97vTJBiWLNEBkF17dYsosXmpSymkqCIxBh6ekSknXCSPBKYmk96K0IMAed00EZ G8IaYQtLnp3acQDnFzvrHzkU6kHy7gJjD4QX13wg= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F0D8A8B93D; Fri, 29 Mar 2019 17:38:37 +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 qtcEeWdHfKcq; Fri, 29 Mar 2019 17:38:37 +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 D93698B938; Fri, 29 Mar 2019 17:38:37 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id B4F5D6FC56; Fri, 29 Mar 2019 16:38:37 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v2 15/17] 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, 29 Mar 2019 16:38:37 +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 5f52a71c2838..edd119d3c52b 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -463,12 +463,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