From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580Ab2FRLcM (ORCPT ); Mon, 18 Jun 2012 07:32:12 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:43210 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751633Ab2FRLak (ORCPT ); Mon, 18 Jun 2012 07:30:40 -0400 From: Michal Simek To: linux-kernel@vger.kernel.org Cc: Russell King , Marc Zyngier , Grant Likely , Will Deacon , Rob Herring , Nicolas Pitre , linux-arm-kernel@lists.infradead.org, Ohad Ben-Cohen , Peter Crosthwaite , Michal Simek Subject: [RFC PATCH 2/8] ARM: gic: Export gic_raise_softirq function for kernel modules Date: Mon, 18 Jun 2012 13:30:05 +0200 Message-Id: <1340019011-18642-3-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1340019011-18642-1-git-send-email-monstr@monstr.eu> References: <1340019011-18642-1-git-send-email-monstr@monstr.eu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function can be used by device driver for raising software irqs. For example AMP(remoteproc) on Zynq. Signed-off-by: Michal Simek --- arch/arm/common/gic.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index 4003cc2..b8e7202 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c @@ -22,6 +22,7 @@ * As such, the enable set/clear, pending set/clear and active bit * registers are banked per-cpu for these sources. */ +#include #include #include #include @@ -753,6 +754,7 @@ void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) /* this always happens on GIC0 */ writel_relaxed(map << 16 | irq, gic_data_dist_base(&gic_data[0]) + GIC_DIST_SOFTINT); } +EXPORT_SYMBOL(gic_raise_softirq); #endif #ifdef CONFIG_OF -- 1.7.0.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: monstr@monstr.eu (Michal Simek) Date: Mon, 18 Jun 2012 13:30:05 +0200 Subject: [RFC PATCH 2/8] ARM: gic: Export gic_raise_softirq function for kernel modules In-Reply-To: <1340019011-18642-1-git-send-email-monstr@monstr.eu> References: <1340019011-18642-1-git-send-email-monstr@monstr.eu> Message-ID: <1340019011-18642-3-git-send-email-monstr@monstr.eu> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This function can be used by device driver for raising software irqs. For example AMP(remoteproc) on Zynq. Signed-off-by: Michal Simek --- arch/arm/common/gic.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index 4003cc2..b8e7202 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c @@ -22,6 +22,7 @@ * As such, the enable set/clear, pending set/clear and active bit * registers are banked per-cpu for these sources. */ +#include #include #include #include @@ -753,6 +754,7 @@ void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) /* this always happens on GIC0 */ writel_relaxed(map << 16 | irq, gic_data_dist_base(&gic_data[0]) + GIC_DIST_SOFTINT); } +EXPORT_SYMBOL(gic_raise_softirq); #endif #ifdef CONFIG_OF -- 1.7.0.4