Received: by 10.213.65.68 with SMTP id h4csp1058118imn; Wed, 28 Mar 2018 19:30:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Vup8Gju+Tj/UER9Pu0quaSVyjEFhxUoSJlg52nymaI1OqE7xlVEgij0MEZ/DPNiJP2Rh2 X-Received: by 10.98.131.75 with SMTP id h72mr4832274pfe.166.1522290604766; Wed, 28 Mar 2018 19:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522290604; cv=none; d=google.com; s=arc-20160816; b=BhIz6AcsZyIkTRuxjTWhkEVmMFKM93uTTJO5/zcG/UF4f8IGZ/9xXKeFdgVsdxHQ3q OtOwPrDDsdTSzRxzO0G3Bit+RseR1xIlctbdToo5mPOOyYeLLv3JGgrHGmxSHxsvwkze 5a9qnt0xHQ9aaGxdrybIaVZAtcHoVHHcRdbFnWSKccCiEKAJPygfcmX3lCSmmkF8EePU rnsn0uBg1HzhKNPcTFp4kuS7TfG+9thRCxAwaTzRpr8ZGtP+EXJNemPvt5gQ1bEumZsN 9xcLxmpdPE3UH+qPNiuhqBujf/wavpGOFoJRoTziFYHWtx5Edaqllz5MWVjuXgvxz8br duOQ== 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=iTMjw8my8YaVve6mepF7/6g/huQUYFUejvI8dFV2swk=; b=s+76ssXaM+aTyk17MM2KZBDA4LxRdKORoy3v90v3elPcaGIORpybpXFZpXY31ApfDo we/bV902HzmN/dA93xaoxdpuktymP8JVYs86tZui7zTFZIwMR8qCps95CPJf1WBGWWbz BTF3R1paSO8mAEK6X7fJSAvZjtI+0nbx+KI3NwzFC4nSViZ3kZH4cm2HzCwtmDWB81xi dJAEZxabCe4s4rfiMX5RuLK/ybN2Su9VrJhMF1Me6cueKAjLaxsvrbo2Ov7GWIAhW7pc M1K5J1nEEWUIQjtR2g5s52WooJDyb9butjxdqdhvRddEQvhDEcSHNHWxM6EflgJR+r9+ EmvA== 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 f9-v6si4934046plt.502.2018.03.28.19.29.50; Wed, 28 Mar 2018 19:30:04 -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 S1752364AbeC2C2a (ORCPT + 99 others); Wed, 28 Mar 2018 22:28:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:42434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbeC2C1k (ORCPT ); Wed, 28 Mar 2018 22:27:40 -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 D889321839; Thu, 29 Mar 2018 02:27:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D889321839 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 07/10] powerpc: Switch to generic local_softirq_pending() implementation Date: Thu, 29 Mar 2018 04:27:02 +0200 Message-Id: <1522290425-22844-8-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 Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. 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/powerpc/include/asm/hardirq.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/include/asm/hardirq.h b/arch/powerpc/include/asm/hardirq.h index 5986d47..383f628 100644 --- a/arch/powerpc/include/asm/hardirq.h +++ b/arch/powerpc/include/asm/hardirq.h @@ -25,15 +25,8 @@ typedef struct { DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); #define __ARCH_IRQ_STAT - -#define local_softirq_pending() __this_cpu_read(irq_stat.__softirq_pending) - -#define __ARCH_SET_SOFTIRQ_PENDING #define __ARCH_IRQ_EXIT_IRQS_DISABLED -#define set_softirq_pending(x) __this_cpu_write(irq_stat.__softirq_pending, (x)) -#define or_softirq_pending(x) __this_cpu_or(irq_stat.__softirq_pending, (x)) - static inline void ack_bad_irq(unsigned int irq) { printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq); -- 2.7.4