From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754324AbbKCLQl (ORCPT ); Tue, 3 Nov 2015 06:16:41 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:29153 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbbKCLNh (ORCPT ); Tue, 3 Nov 2015 06:13:37 -0500 From: Qais Yousef To: CC: , , , , , , Qais Yousef Subject: [PATCH 05/14] genirq: Add struct ipi_mask to irq_data Date: Tue, 3 Nov 2015 11:12:52 +0000 Message-ID: <1446549181-31788-6-git-send-email-qais.yousef@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1446549181-31788-1-git-send-email-qais.yousef@imgtec.com> References: <1446549181-31788-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 It has a similar role to affinity mask, but tracks the IPI affinity instead. Signed-off-by: Qais Yousef --- include/linux/irq.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 77ed4c53ef64..2d3ff30c0cee 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -164,6 +164,7 @@ struct irq_common_data { void *handler_data; struct msi_desc *msi_desc; cpumask_var_t affinity; + struct ipi_mask *ipi_mask; }; /** @@ -689,6 +690,11 @@ static inline int irq_data_get_node(struct irq_data *d) return irq_common_data_get_node(d->common); } +static inline struct cpumask *irq_data_get_ipi_mask(struct irq_data *d) +{ + return &d->common->ipi_mask->cpumask; +} + static inline struct cpumask *irq_get_affinity_mask(int irq) { struct irq_data *d = irq_get_irq_data(irq); -- 2.1.0