Received: by 10.213.65.68 with SMTP id h4csp1721673imn; Mon, 19 Mar 2018 11:25:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELt67LWa9e8DIqNExbQ4S3utn3Mb9ugWufs5ioAUVh7xrUi0bTnp2b8Amw4390rG09C7k2z9 X-Received: by 10.99.55.1 with SMTP id e1mr5422508pga.237.1521483940133; Mon, 19 Mar 2018 11:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483940; cv=none; d=google.com; s=arc-20160816; b=hBogtnmeE+Rci07FLgMTlPdhAypKFOjC9k/h+b54w0s6FSzmflvAoqhACbefc2+seE gTiU5EKnmxYeSsidJvFdPIyl6W5Ea1AhOqJnyN9BJoqKDa1A2pQrlIm9gZuIGApD6abn Oilx8yWkZDoNTL3PbH5ENkfoASHqGvJVhpy1LPMdJYVsqhNslSekxxdw3RpAd3TrgB6h s0TVeYaW+36nB78tHVm0CjulhrTDkQo2i0fOptkzOVNc/frSTxPrhGVDBXUNy9L96Qry H6aEGgelb4WayFL9MhamNpESMuSDlrdHCB/03iKgqOlKn41oZHuzOXKX2G4fTwsu7wt8 TciA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=SzZIjV4qZGjiEaZ21Unzqw11HLL/pI1Tw8VBL/Sh2XY=; b=uAV/yVcrwZxO679dNKGy9NiFmHEMSrfSxkkXNxIIKcYxXIsTBCS9PajP+Vmcl9DU6t pXpcJDeX10tJ/jd1lKulwl9ML+4lcJvkHQWoJseKtjes/REM3wh8YMboejwgojs9a0Dp Gkp/u8tnr0/t357xKmSbR/mNKd/STAgeNV9qNCVFrKonF40eo6HWxZk2E1z5pUYFEDbj Xa/6jWDppRR/H22Ty/g0/GLTY5Q6Mzs8LXTNyY+5A216BN1ACtHlUyh9xEvFb+7WQ5iA IeTmP4ozrtjA/RYj5QVE7WLnkt7njjPFAzzzLuS0CO6EwFcQtA9X91Q8+nkS/iCE0tp4 qDVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s9-v6si461041plk.490.2018.03.19.11.25.26; Mon, 19 Mar 2018 11:25:40 -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; 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 S965703AbeCSSX5 (ORCPT + 99 others); Mon, 19 Mar 2018 14:23:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49658 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031429AbeCSSXw (ORCPT ); Mon, 19 Mar 2018 14:23:52 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7A394D09; Mon, 19 Mar 2018 18:23:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aleksandar Markovic , Paul Burton , james.hogan@imgtec.com, leonid.yegoshin@imgtec.com, douglas.leung@imgtec.com, petar.jovanovic@imgtec.com, miodrag.dinic@imgtec.com, goran.ferenc@imgtec.com, linux-mips@linux-mips.org, Ralf Baechle , Sasha Levin Subject: [PATCH 4.9 132/241] MIPS: r2-on-r6-emu: Clear BLTZALL and BGEZALL debugfs counters Date: Mon, 19 Mar 2018 19:06:37 +0100 Message-Id: <20180319180756.657075473@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aleksandar Markovic [ Upstream commit 411dac79cc2ed80f7e348ccc23eb4d8b0ba9f6d5 ] Add missing clearing of BLTZALL and BGEZALL emulation counters in function mipsr2_stats_clear_show(). Previously, it was not possible to reset BLTZALL and BGEZALL emulation counters - their value remained the same even after explicit request via debugfs. As far as other related counters are concerned, they all seem to be properly cleared. This change affects debugfs operation only, core R2 emulation functionality is not affected. Signed-off-by: Aleksandar Markovic Reviewed-by: Paul Burton Cc: james.hogan@imgtec.com Cc: leonid.yegoshin@imgtec.com Cc: douglas.leung@imgtec.com Cc: petar.jovanovic@imgtec.com Cc: miodrag.dinic@imgtec.com Cc: goran.ferenc@imgtec.com Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/15517/ Signed-off-by: Ralf Baechle Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/mips-r2-to-r6-emul.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/mips/kernel/mips-r2-to-r6-emul.c +++ b/arch/mips/kernel/mips-r2-to-r6-emul.c @@ -2339,6 +2339,8 @@ static int mipsr2_stats_clear_show(struc __this_cpu_write((mipsr2bremustats).bgezl, 0); __this_cpu_write((mipsr2bremustats).bltzll, 0); __this_cpu_write((mipsr2bremustats).bgezll, 0); + __this_cpu_write((mipsr2bremustats).bltzall, 0); + __this_cpu_write((mipsr2bremustats).bgezall, 0); __this_cpu_write((mipsr2bremustats).bltzal, 0); __this_cpu_write((mipsr2bremustats).bgezal, 0); __this_cpu_write((mipsr2bremustats).beql, 0);