Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbbKGNc3 (ORCPT ); Sat, 7 Nov 2015 08:32:29 -0500 Received: from www.linutronix.de ([62.245.132.108]:35294 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753214AbbKGNc2 (ORCPT ); Sat, 7 Nov 2015 08:32:28 -0500 Date: Sat, 7 Nov 2015 14:31:42 +0100 (CET) From: Thomas Gleixner To: Qais Yousef cc: linux-kernel@vger.kernel.org, jason@lakedaemon.net, marc.zyngier@arm.com, jiang.liu@linux.intel.com, ralf@linux-mips.org, linux-mips@linux-mips.org Subject: Re: [PATCH 07/14] genirq: Add a new generic IPI reservation code to irq core In-Reply-To: <1446549181-31788-8-git-send-email-qais.yousef@imgtec.com> Message-ID: References: <1446549181-31788-1-git-send-email-qais.yousef@imgtec.com> <1446549181-31788-8-git-send-email-qais.yousef@imgtec.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 698 Lines: 21 On Tue, 3 Nov 2015, Qais Yousef wrote: > + > + /* always allocate a virq per cpu */ > + nr_irqs = ipi_mask_weight(dest); That's not really a good assumption. Not all architectures need seperate interrupt numbers / descriptors because they can allocate from a per cpu interrupt space. We really want to handle that here as well. So we need a flag in the IPI domain which tells us whether that allocation needs to be weight(desc) or 1. Thanks, tglx -- 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/