Received: by 10.213.65.68 with SMTP id h4csp1059427imn; Wed, 28 Mar 2018 19:31:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx49lLOARB18oeiZDZ+sTzfLAwozLHC1vlwI/sh//b0S0h/WJKijggdsB0GBxsCB4WE3ldE5Z X-Received: by 10.98.237.18 with SMTP id u18mr4829839pfh.78.1522290715346; Wed, 28 Mar 2018 19:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522290715; cv=none; d=google.com; s=arc-20160816; b=W3EYeoX17RXPqbJpiDxpaYP2tTXpPNSLFHniq0iJZyg4PmRKnjWGf6G3VIMvQfQeLa 8Svleve7Im/DcauydsXLLBaJ8Ih6kNXNauKJm1+8rI0/2y7K1jgVgualwXN9XqEfOn0g VvYTo8Y+kvYJX7DATUNde6ufZcxId+qZTOvsQlbtLwWrB+IV6wnBGKv/XfaUHDy+CTvj GMiUUajaTqOdFKkRGcwgD/kGuIasR720YhMpdqn7Ln9Oj1nIAtQLoZpbs+DROZNg50Qw wHJFCogdMwnKXtVwTK5n3ZyFmpkcYVUXmhasQU+qYNpPqEJV29WIt56hZgk9UzMCcbYG H/qA== 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=w2Di/Lx6XdWYWKZ/s2kpJatGHyZnPZTKEzPIVbTDugw=; b=j+9VisNiOmg26XkKWJicEz2jdgZTJPxWVUKE/6B2viG7ti1rH1VmCvlewwNE5xAIuU 59btnjzv3G6tnUlPiWy4zpch+HiDljtcNxwHV3mBp+75/2Bk6h5mebS4SPMvgaKA85U3 vj1ePyKbk5GSxp4rXDsPhdWMgnRvt85SLTzv0yWVyEPZUeEhX5OFsqcyr6x5Ffq6Sl7Y YR8FAuBB2/UDv1xqbK2al/h5elIEyDv3Zh0sN4ZifD2rzy2CDUX2Ow8HkJGvTSmJGQR3 OPBJOJS2yz2BCDXugqdSfJtuud15PBrXbC+uZvSIcpzuF++omA2ye/JJ5RosCwu1Pq8f NoAw== 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 q14-v6si218342plr.617.2018.03.28.19.31.41; Wed, 28 Mar 2018 19:31:55 -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 S1752392AbeC2C3N (ORCPT + 99 others); Wed, 28 Mar 2018 22:29:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:42174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751398AbeC2C1X (ORCPT ); Wed, 28 Mar 2018 22:27:23 -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 664BC217D8; Thu, 29 Mar 2018 02:27:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 664BC217D8 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 02/10] sparc: Convert local_softirq_pending() to use per-cpu op Date: Thu, 29 Mar 2018 04:26:57 +0200 Message-Id: <1522290425-22844-3-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 In order to consolidate and optimize generic softirq mask accesses, we first need to convert architectures to use per-cpu operations when possible. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/include/asm/hardirq_64.h b/arch/sparc/include/asm/hardirq_64.h index f565402..6aba904 100644 --- a/arch/sparc/include/asm/hardirq_64.h +++ b/arch/sparc/include/asm/hardirq_64.h @@ -11,7 +11,7 @@ #define __ARCH_IRQ_STAT #define local_softirq_pending() \ - (local_cpu_data().__softirq_pending) + (*this_cpu_ptr(&__cpu_data.__softirq_pending)) void ack_bad_irq(unsigned int irq); -- 2.7.4