From patchwork Fri Nov 13 14:02:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 11903661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24C7FC4742C for ; Fri, 13 Nov 2020 14:27:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C1B5920715 for ; Fri, 13 Nov 2020 14:27:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jIsQDS8b"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="U1TO39nO"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="un8PSw38" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1B5920715 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:Subject:To:From:Date: Message-Id:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Owner; bh=+OiznawcMfM80jE5RK4kTaUJ/gAZ9tJjMdZBlWJ1DXI=; b=jIsQDS8bdQ0YdPo2yAy954Tk/ AYPvoorcKhBu7aIxk4xkd3ndlbMyHVJYKRP8olQKsiE69Kq1UlLFQZbNHO5VfVaW5p7wlKrIg3dgl 57wE/gcoxD49KN7Trjcq97BYpAe5SftDg7xYCykaBkF7UAePx9voOI5HerEtvMjniqgn7L17Ncafp ZfokbbP1ALiaooETM3jXZieJhg695MNlWO8Wb2aXZEd8par2PAcHM+1+OL2jG/2ChuNxtxLp+Vg2O azJthGsGo2qPGuC58O4A9qsvAyJiON9WK+HDE8bh6dcqYpU94Go9RUTau8R843v7HSei2XjRBm920 +M90M9ulA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kda1G-0006j9-Kj; Fri, 13 Nov 2020 14:25:42 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdZzz-0006H0-TL; Fri, 13 Nov 2020 14:24:28 +0000 Message-Id: <20201113141733.501611990@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605277462; h=from:from: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: references:references; bh=OHBT/GvIcx8sVKLm+I9A4wHeNhC5PYlDa+OcCnGbESo=; b=U1TO39nOFoVbk93TwLqtmx7eirvEZHX/LsbXoG8kX8NYI9La4G+iYW3KsdHywpTurZ21jE lcKQVyEXjPaHxz3lSGJORdX0PV4/sTuPicpK53k1W2sARNdyynyNxlK04wAOdXNtq2Y+1I kyXeIknJBqtGPO0mtTckQdR6o/1fHSJzBO7XiCN5CwzRlIea3+p6Z888Nq7lq2nzxJewYo FBDQ/0oalzSY9f6mcTHDO8LMM+TNDOAqrhVtE/ljspI/osFPT/oFpJxPDXcxEnAtj1IgFU qFZzF+5Bvq53Hh55iyMItfff0W0EZlIbcRP2pxMeFBFeamngsGfkzvqthPnUbA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605277462; h=from:from: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: references:references; bh=OHBT/GvIcx8sVKLm+I9A4wHeNhC5PYlDa+OcCnGbESo=; b=un8PSw38kc67x10IKXSJioXWUKjQjWWlL39xWy2VdmA0v1fdujzmkwrpWq2pk6cDYFi2rd 8SpDL5kN3gfHhbCA== Date: Fri, 13 Nov 2020 15:02:14 +0100 From: Thomas Gleixner To: LKML Subject: [patch 07/19] asm-generic/irqstat: Add optional __nmi_count member References: <20201113140207.499353218@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201113_092424_250845_188FAFD2 X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Rich Felker , Catalin Marinas , Paul McKenney , Arnd Bergmann , linux-sh@vger.kernel.org, Peter Zijlstra , Richard Weinberger , Frederic Weisbecker , Valentin Schneider , Jeff Dike , Russell King , Yoshinori Sato , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Helge Deller , linux-um@lists.infradead.org, Will Deacon , Sebastian Andrzej Siewior , linux-arm-kernel@lists.infradead.org, Anton Ivanov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add an optional __nmi_count member to irq_cpustat_t so more architectures can use the generic version. Signed-off-by: Thomas Gleixner --- include/asm-generic/hardirq.h | 3 +++ 1 file changed, 3 insertions(+) --- a/include/asm-generic/hardirq.h +++ b/include/asm-generic/hardirq.h @@ -7,6 +7,9 @@ typedef struct { unsigned int __softirq_pending; +#ifdef ARCH_WANTS_NMI_IRQSTAT + unsigned int __nmi_count; +#endif } ____cacheline_aligned irq_cpustat_t; #include /* Standard mappings for irq_cpustat_t above */