Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753604AbbKYMPO (ORCPT ); Wed, 25 Nov 2015 07:15:14 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:36383 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319AbbKYMHz (ORCPT ); Wed, 25 Nov 2015 07:07:55 -0500 From: Qais Yousef To: CC: , , , , , , Qais Yousef Subject: [PATCH v2 05/19] genirq: Add struct ipi_mask to irq_data Date: Wed, 25 Nov 2015 12:06:43 +0000 Message-ID: <1448453217-3874-6-git-send-email-qais.yousef@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1448453217-3874-1-git-send-email-qais.yousef@imgtec.com> References: <1448453217-3874-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: 1386 Lines: 51 It has a similar role to affinity mask, but tracks the IPI affinity instead. Signed-off-by: Qais Yousef --- include/linux/irq.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 7d8c3d88f16f..fcdcb9394e75 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -168,6 +168,9 @@ struct irq_common_data { void *handler_data; struct msi_desc *msi_desc; cpumask_var_t affinity; +#ifdef CONFIG_GENERIC_IRQ_IPI + struct ipi_mask *ipi_mask; +#endif }; /** @@ -705,6 +708,21 @@ static inline struct cpumask *irq_data_get_affinity_mask(struct irq_data *d) return d->common->affinity; } +#ifdef CONFIG_GENERIC_IRQ_IPI + +static inline struct ipi_mask *irq_data_get_ipi_mask(struct irq_data *d) +{ + return d->common->ipi_mask; +} + +static inline void irq_data_set_ipi_mask(struct irq_data *d, + struct ipi_mask *ipimask) +{ + d->common->ipi_mask = ipimask; +} + +#endif + unsigned int arch_dynirq_lower_bound(unsigned int from); int __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node, -- 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/