From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753006AbbJMKTs (ORCPT ); Tue, 13 Oct 2015 06:19:48 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:27339 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbbJMKQr (ORCPT ); Tue, 13 Oct 2015 06:16:47 -0400 From: Qais Yousef To: CC: , , , , , , Qais Yousef Subject: [RFC v2 PATCH 03/14] irq: add new struct ipi_mask Date: Tue, 13 Oct 2015 11:16:11 +0100 Message-ID: <1444731382-19313-4-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 cpumask is limited to NR_CPUS. introduce ipi_mask which allows us to address cpu range that is higher than NR_CPUS which is required for drivers to send IPIs for coprocessor that are outside Linux CPU range. Signed-off-by: Qais Yousef --- include/linux/irq.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 11bf09288ddb..4b537e4d393b 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -125,6 +125,21 @@ enum { struct msi_desc; struct irq_domain; + /** + * struct ipi_mask - IPI mask information + * @cpumask: bitmap of cpumasks + * @nbits: number of bits in cpumask + * @global: whether the mask is SMP IPI ie: subset of cpu_possible_mask or not + * + * ipi_mask is similar to cpumask, but it provides nbits that's configurable + * rather than fixed to NR_CPUS. + */ +struct ipi_mask { + unsigned long *cpumask; + unsigned int nbits; + bool global; +}; + /** * struct irq_common_data - per irq data shared by all irqchips * @state_use_accessors: status information for irq chip functions. -- 2.1.0