Received: by 10.213.65.68 with SMTP id h4csp1057874imn; Wed, 28 Mar 2018 19:29:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+FekV4Jm+Un9jhhMvylVCR5Y28OkQcNucyhrHGnHKsq6aHZwhfeFYNYP9Xi2jD0nHPx0ZP X-Received: by 10.99.98.196 with SMTP id w187mr4241465pgb.307.1522290576394; Wed, 28 Mar 2018 19:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522290576; cv=none; d=google.com; s=arc-20160816; b=G7DkLvtelPpYy28y1PHbKlcMDhh61ktMjjd2C0/phCzKOykyg+gKLUsqNb5sjj5Z+p BRzlpFJz+Kh+eVOkRtbJNP0aRFjS32EJ4QTaXO5xDnT1luboeN0gm+R13sWtpZ66iGId 4sxH8k50sUMKcmVCK9cMBzR+1kSBcaXx3qScuAvBG5iDGrcyLjI6CJTo7KeQhT97ebEJ voTKtDP1RQeF5luSXgUr3HN+ldjqvmOobdEotlkytrFSHvor9k+bXr9OtOJHOmK5qlCx M3b6L9sYVscXghPHZpbbhhdLJBythee5TWsum5j7fV16JqYALHWZZdE7vG0rT3Yj0e1h k9cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:arc-authentication-results; bh=ijkTLe0NxnH2VZjp0laFTwIiFUuIZ7hgQJIIM6GSRGw=; b=TlHAmuw9gGMoot8tbPmXYTa3NY8E9FfeoY/aLtK0DdyBaBzjLnPsNlxYx9YCZkhOQh 87otawq/5pxlHJjIuoNYO0UGJa/a2MwicDLTvAHTWVhafbGmO1/na5jeGfYQlAaaeJT6 OQuFt8kQdFis220x+/A/lLwd9+pHJdsdFkjBx73SxAwtGWQh/IRkdZf9Z676F3JlIXJ5 o+fJxg+9z/4JCL4JiX6jVfF5F5JF3Fqi2zQY0cSp54OX2MELpOJpm4F/YopwnnUqmx5S nLynwAN1PPfx/zjQanVw3f3YjRcQbFNUq/RHjKV2XT+bRicHGm5AGDXpSbJWkpPb3N02 tzZQ== 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 n10-v6si2054144plk.141.2018.03.28.19.29.22; Wed, 28 Mar 2018 19:29:36 -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 S1752230AbeC2C1q (ORCPT + 99 others); Wed, 28 Mar 2018 22:27:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:42490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067AbeC2C1n (ORCPT ); Wed, 28 Mar 2018 22:27:43 -0400 Received: from lerouge.home (LFbn-1-18526-44.w90-101.abo.wanadoo.fr [90.101.68.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2AC3E2183E; Thu, 29 Mar 2018 02:27:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2AC3E2183E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=frederic@kernel.org From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Sebastian Andrzej Siewior , Tony Luck , Peter Zijlstra , "David S . Miller" , Michael Ellerman , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Fenghua Yu , "James E . J . Bottomley" Subject: [PATCH 08/10] sparc: Switch to generic local_softirq_pending() implementation Date: Thu, 29 Mar 2018 04:27:03 +0200 Message-Id: <1522290425-22844-9-git-send-email-frederic@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522290425-22844-1-git-send-email-frederic@kernel.org> References: <1522290425-22844-1-git-send-email-frederic@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Benefit from the generic softirq mask implementation that rely on per-CPU mutators instead of working with raw operators on top of this_cpu_ptr(). Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: James E.J. Bottomley Cc: Helge Deller Cc: Tony Luck Cc: Fenghua Yu --- arch/sparc/include/asm/hardirq_64.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sparc/include/asm/hardirq_64.h b/arch/sparc/include/asm/hardirq_64.h index 6aba904..75b92bf 100644 --- a/arch/sparc/include/asm/hardirq_64.h +++ b/arch/sparc/include/asm/hardirq_64.h @@ -10,8 +10,9 @@ #include #define __ARCH_IRQ_STAT -#define local_softirq_pending() \ - (*this_cpu_ptr(&__cpu_data.__softirq_pending)) + +#define local_softirq_pending_ref \ + __cpu_data.__softirq_pending void ack_bad_irq(unsigned int irq); -- 2.7.4