Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1272424pxu; Mon, 23 Nov 2020 16:40:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXd5ytgYLqBvqZo8+wbKWOPci6/AD8Fy0J1vqmmdhFzndRBcw3MFJP/GNMIVwLiSjYo1Wp X-Received: by 2002:a17:906:1688:: with SMTP id s8mr2039726ejd.293.1606178445902; Mon, 23 Nov 2020 16:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606178445; cv=none; d=google.com; s=arc-20160816; b=HwfXHiMyOVz6nRoRe4obwPN2VHWFP4FYsYL7MFPJOjn/T/N2RoUVhnxsz8LyQzXpc5 0JtB7yD2YGI69YbZsMXkNIz/4DDRb3bU/yNTAqwINMf6CwYDRjohPWFL8k3KqRZG2z0y IgXjoD+9/VZJlV3+Aydv+ygQsK5cPu3jx/aATFvUE5P6c5XN2mSld2X3MjF2t3nT0wnG BK253B1D87WzkVg9g6utcSn+WdC8yWxlIWHSF8+Pv8HnIw+VuivGnpyBJw2PiDE0Gqmr CVSDVuYUkSF1RTtjbcrAssG1M5Y27sbG3D4cHCbB3UysiVoSMg0mYoUx9+pzTeLgWOln Qjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=8PPHSCnJVnvJlVz3aoEklJjLL2DbcpBjoTxpAipI3SI=; b=g8A+xXz9N0nfhUQlGaBE1Pnm7CfnA664sA2y1+VgJ+aUBNfq1x0l/GXSIxFTjSofI4 PbMfkvQym4JWeLr8FJ6IqgpKcSNxHzo0OGqoWdykTgCeIGStuq0FW66zxSwYUKYPaTyc VcF+Ybit8ueX/ujy0+8V4UYMzYTqs+27v53lE6leJenkIfu2eFybZou0CBoORnxNWbVX vLaubaXf/fja00t5MGWwv4wptTEb1PwN459I8H1djDhs99TV4ntadG9nT/SoidzMKAQ+ AUZPNWCTCXMl66g8QROc2MXX+muPZyNux/zx8zF0yH+aJypEXf6vckzOrm9dHM0cTJgF 9G/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BdTv1zT0; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si8466011edx.51.2020.11.23.16.40.23; Mon, 23 Nov 2020 16:40:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BdTv1zT0; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387822AbgKWWwq (ORCPT + 99 others); Mon, 23 Nov 2020 17:52:46 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:38962 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387546AbgKWWvw (ORCPT ); Mon, 23 Nov 2020 17:51:52 -0500 Date: Mon, 23 Nov 2020 22:51:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606171910; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8PPHSCnJVnvJlVz3aoEklJjLL2DbcpBjoTxpAipI3SI=; b=BdTv1zT0RlLUxsuwWScOTRJr3JiZXYVlTHp6s/Klh8GFuy2uljYZxDmkxdAUpc6MgjWylL eksex5tO0LYA1cwANTo4DquoAy8pIzAyaPBGEgdQPh/gou5TSEYC525VBHncSLA/lIIoaT 3DPWvcoTBaCBVx4PbhSGUwQzB0J3VLe21d0/qS3CakHgTgr4qKLCuHZC8SCwiXKyXnBo1R svEhOlwEtd+zoef+bsd2Yi+IUoQzmTvv7JM0STg2qzsYCYLo227bIF4IlUcWJwL4cEP2Wb 0DegSOo+SEvDZuHaX2fJxbQ22dGRTeZ3JdHzzj/6xknIu0YctsS7012ZZXoZ6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606171910; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8PPHSCnJVnvJlVz3aoEklJjLL2DbcpBjoTxpAipI3SI=; b=Fx+iGdV3F4K80NWrmZNJG6zvBKMj7TZiwm7FXdn5slWeNGWLrhgR+95cEh5mSeBuQubrFW oJDgY/j4KwMMSkAA== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] sh: Get rid of nmi_count() Cc: Thomas Gleixner , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20201113141732.844232404@linutronix.de> References: <20201113141732.844232404@linutronix.de> MIME-Version: 1.0 Message-ID: <160617190915.11115.15737801876796548430.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: fe3f1d5d7cd3062c0cb8fe70dd77470019dedd19 Gitweb: https://git.kernel.org/tip/fe3f1d5d7cd3062c0cb8fe70dd77470019dedd19 Author: Thomas Gleixner AuthorDate: Fri, 13 Nov 2020 15:02:09 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 23 Nov 2020 10:31:05 +01:00 sh: Get rid of nmi_count() nmi_count() is a historical leftover and SH is the only user. Replace it with regular per cpu accessors. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20201113141732.844232404@linutronix.de --- arch/sh/kernel/irq.c | 2 +- arch/sh/kernel/traps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index 5717c7c..5addcb2 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c @@ -44,7 +44,7 @@ int arch_show_interrupts(struct seq_file *p, int prec) seq_printf(p, "%*s: ", prec, "NMI"); for_each_online_cpu(j) - seq_printf(p, "%10u ", nmi_count(j)); + seq_printf(p, "%10u ", per_cpu(irq_stat.__nmi_count, j); seq_printf(p, " Non-maskable interrupts\n"); seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count)); diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index 9c3d32b..f5beecd 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c @@ -186,7 +186,7 @@ BUILD_TRAP_HANDLER(nmi) arch_ftrace_nmi_enter(); nmi_enter(); - nmi_count(cpu)++; + this_cpu_inc(irq_stat.__nmi_count); switch (notify_die(DIE_NMI, "NMI", regs, 0, vec & 0xff, SIGINT)) { case NOTIFY_OK: