From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbbJMKQv (ORCPT ); Tue, 13 Oct 2015 06:16:51 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:60080 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbbJMKQt (ORCPT ); Tue, 13 Oct 2015 06:16:49 -0400 From: Qais Yousef To: CC: , , , , , , Qais Yousef Subject: [RFC v2 PATCH 04/14] irq: add a new irq_send_ipi() to irq_chip Date: Tue, 13 Oct 2015 11:16:12 +0100 Message-ID: <1444731382-19313-5-git-send-email-qais.yousef@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1444731382-19313-1-git-send-email-qais.yousef@imgtec.com> References: <1444731382-19313-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 Introduce the new function to allow generic IPI send mechanism to be used from drivers code. Signed-off-by: Qais Yousef --- include/linux/irq.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 4b537e4d393b..504133671985 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -369,6 +369,7 @@ 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 + * @irq_send_ipi: send an IPI to destination cpus * @flags: chip specific flags */ struct irq_chip { @@ -413,6 +414,8 @@ struct irq_chip { int (*irq_set_vcpu_affinity)(struct irq_data *data, void *vcpu_info); + void (*irq_send_ipi)(struct irq_data *data, const struct ipi_mask *dest); + unsigned long flags; }; -- 2.1.0