From patchwork Fri Oct 13 10:44:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Thierry X-Patchwork-Id: 10004145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A5257602B3 for ; Fri, 13 Oct 2017 10:59:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97B1129029 for ; Fri, 13 Oct 2017 10:59:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CC812902B; Fri, 13 Oct 2017 10:59:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2369B29029 for ; Fri, 13 Oct 2017 10:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=EkyOMIrYedxypQ78yGr0S83fcB6Gfs8Ua2ze1Ymec+E=; b=j26 abF0MeLpBbYjygmqQaIXpFpzGg6y7euGL2wi+Su4cSCI/MmouCZLxqSEDZNW4gyTmZeiqcO+WjaCB ZfzBT9O/Q4w5MtagKPQ+wzpqSexIR6SmTbrq1URedr0kqSkCPMQ48piS63pYI3npPSS9Y5hPOjZbo vWKdb9gmDrg9NNd0Fsj2kzCREiIu55ZTh+WB6J7SNoKdGqARxNjuQ60E4jMUbtIouW9Kqc9bUl5DB lNyocJptbzHLW/XZgYCxBf8sUVvtadzAN00aZ6/XtKrk0X0m9MGcV1e9lAHdrZ9YdTHCb6NnRQone c0c9wjd5/e6eSs/4M+qI2wilRHpAN/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2xfy-0003SG-Jt; Fri, 13 Oct 2017 10:58:46 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e2xfr-0002yx-JH for linux-arm-kernel@bombadil.infradead.org; Fri, 13 Oct 2017 10:58:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JgW/m76VDeKlFUJymiSayHSv3S1w2zBHeiWt6/OE+XE=; b=EhYVm8ocpfDNIy6J1vdqg2s25 POMlSrluzpJceFZ+GopcvgFL7k66/f95F/z4QnI6F3I8ZveQ1LE4uqRQPda3yEBOgrfvgOmC+2Lom py0CULEl1cmiK5I/O/7L2veX4f9m63GekdZ5XxWs4pjcVaezNtbi4IsluBVyyIOJMgO0+W/8v0ZM8 +Vn1267EAG8IiTZ9VE2EoSqhYraYaLWDCF1KdEZ3rulJLFlqTHQLLJADKRNi+rCSvLXhWgAeyPbU8 YmtzZTCwvXoMp7D7Fsp/270SMcgnDJejBvGIDGnI2ATi2qT+SfIuMhBg8PWjcl7XIn9Hy9SdHfmlh snVaXb0gQ==; Received: from foss.arm.com ([217.140.101.70]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2xSY-000710-PU for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 10:44:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C53AC1596; Fri, 13 Oct 2017 03:44:33 -0700 (PDT) Received: from e112298-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 88D983F236; Fri, 13 Oct 2017 03:44:32 -0700 (PDT) From: Julien Thierry To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] irqdesc: Add function to identify percpu_devid irqs Date: Fri, 13 Oct 2017 11:44:25 +0100 Message-Id: <1507891466-52292-1-git-send-email-julien.thierry@arm.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171013_114454_986169_6B04F396 X-CRM114-Status: UNSURE ( 8.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, marc.zyngier@arm.com, Thomas Gleixner , will.deacon@arm.com, Julien Thierry MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Julien Thierry Cc: Thomas Gleixner Cc: Marc Zyngier --- include/linux/irqdesc.h | 8 ++++++++ 1 file changed, 8 insertions(+) -- 1.9.1 diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 3e90a09..93960cf 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -244,6 +244,14 @@ static inline int irq_is_percpu(unsigned int irq) return desc->status_use_accessors & IRQ_PER_CPU; } +static inline int irq_is_percpu_devid(unsigned int irq) +{ + struct irq_desc *desc; + + desc = irq_to_desc(irq); + return desc->status_use_accessors & IRQ_PER_CPU_DEVID; +} + static inline void irq_set_lockdep_class(unsigned int irq, struct lock_class_key *class) {