Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932731AbbLHNVh (ORCPT ); Tue, 8 Dec 2015 08:21:37 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:43637 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756331AbbLHNVd (ORCPT ); Tue, 8 Dec 2015 08:21:33 -0500 From: Qais Yousef To: CC: , , , , , , , Qais Yousef Subject: [PATCH v4 10/19] genirq: Add a new irq_send_ipi() to irq_chip Date: Tue, 8 Dec 2015 13:20:21 +0000 Message-ID: <1449580830-23652-11-git-send-email-qais.yousef@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1449580830-23652-1-git-send-email-qais.yousef@imgtec.com> References: <1449580830-23652-1-git-send-email-qais.yousef@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.154.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1395 Lines: 39 Introduce the new functions to allow generic IPI send mechanism to be used from arch and drivers code. Signed-off-by: Qais Yousef --- include/linux/irq.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 1808ee4d42ec..b0556c5787d7 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -363,6 +363,8 @@ static inline irq_hw_number_t irqd_to_hwirq(struct irq_data *d) * @irq_get_irqchip_state: return the internal state of an interrupt * @irq_set_irqchip_state: set the internal state of a interrupt * @irq_set_vcpu_affinity: optional to target a vCPU in a virtual machine + * @ipi_send_single: send a single IPI to destination cpus + * @ipi_send_mask: send an IPI to destination cpus in cpumask * @flags: chip specific flags */ struct irq_chip { @@ -407,6 +409,9 @@ struct irq_chip { int (*irq_set_vcpu_affinity)(struct irq_data *data, void *vcpu_info); + void (*ipi_send_single)(struct irq_data *data, unsigned int cpu); + void (*ipi_send_mask)(struct irq_data *data, const struct cpumask *dest); + unsigned long flags; }; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/