Received: by 10.213.65.68 with SMTP id h4csp1715501imn; Mon, 19 Mar 2018 11:15:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELukPSedzIwcSj70L5FLcGamTYrG2Kr8H40JkW4OJ3pdQase4EBk0iVaijdLx9dZv8Jf/vIm X-Received: by 10.98.1.196 with SMTP id 187mr10853502pfb.152.1521483349947; Mon, 19 Mar 2018 11:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483349; cv=none; d=google.com; s=arc-20160816; b=A8BKhsltyXlt0rY7hHUR92jhSiYO/3UGgwg6bdG2zhEMfT8mU+rU3XRg3jmdsSKC9f WHve8pMkHtEbslm2xRep8qddc38DeDLtg0lDt0oqE4rlWSK3Cywkmb0AKYZCOc3FUiIT Lx3QpQWOWxw57dWXrxTmCTABpTOc+YiNAOqm0GxL9CoJwEvm4hQKVaChtOurWn80IqPf uAZtwWlJSE3yo1ihwo3lZXRBnrts6w3TNfQryWKBC1fUGwyc49uqv658cBki9yZe5qVv Ds15G2WpPsWn/MCb6vS+nI7vZBRFut9lrw2SIKuEH9TthubT+x9g6tBjRckw474UHOgV 03kQ== 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=X/MGcpbGItZNJuOUdf7exi9g+2NWQ5NCpMSvGxVwq28=; b=MEgJQZuejpQGH3BwbI4Zx4fuZObYtu3ZDxOlkkVLeZP+5Kyx2jpi7jP4Y76eo2Jhdg zD5r4Fo5JNlunKbiFO70hz6ks1dkYqPHTYwbphUszIv6O667gGl0jHMY/yAv3qocdMr0 EXY2YCy+jHVsOv/hAQ9hNnx5/wXIwLMH3S0ULBB+nn+J0OFa8g0wu/c5MHZui0bEonvF dkhAMJhBmfvoGk19Vl+Uwc57DeBX9xKsDu12iZMlgn47Y5pgJKx8zccERLcevlPR07B6 GFlBBktjIZBkxLUoMXjJ9pAHEU36/rC+zR1dUdu6TMszvyDKkp1vCzxnbGryDQ5jqLzx 8wbQ== 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 y72-v6si422656plh.72.2018.03.19.11.15.36; Mon, 19 Mar 2018 11:15:49 -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 S1030697AbeCSSOr (ORCPT + 99 others); Mon, 19 Mar 2018 14:14:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44292 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968903AbeCSSOm (ORCPT ); Mon, 19 Mar 2018 14:14:42 -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 E0783F0F; Mon, 19 Mar 2018 18:14:41 +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.4 065/134] MIPS: r2-on-r6-emu: Clear BLTZALL and BGEZALL debugfs counters Date: Mon, 19 Mar 2018 19:05:48 +0100 Message-Id: <20180319171858.667431207@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@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.4-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 @@ -2340,6 +2340,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);