From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CF4EC4361B for ; Sat, 12 Dec 2020 13:04:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B877922CA1 for ; Sat, 12 Dec 2020 13:04:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407413AbgLLNEM (ORCPT ); Sat, 12 Dec 2020 08:04:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438957AbgLLNAa (ORCPT ); Sat, 12 Dec 2020 08:00:30 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545BAC0611CB; Sat, 12 Dec 2020 04:58:46 -0800 (PST) Date: Sat, 12 Dec 2020 12:58:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607777921; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sxoNqSYapiGtMGFOuQGAr0QDBJi2mQgLankMvhDu6mg=; b=qgCGWXWMmgd5PYO0V/6S5dHEeJ9i2tuYQvVR1bxNRIhvPVzHRdqjRBdsPauXGT18sBM5tF X94GjrYbk+yrgZAtAQT0W6ZFA5ViSa/sgs8qjh2FhMWWPVMUTzrI/4TjG+w4A2yNtNXUTU 2+gJc6pfXmb1WfrdcCywb7gV8WzZzGtyd3TdvX+Rv+xRCVCR8wqCZPdkjPQsg0Kb3PvL9z T3KOqq+DYaniwoCe2DmaxPwEFz2df1CiyX6ivQMfZw0q4MAj7tstrFZyOhQJ26f8fMNxb1 /JEsXwe6k2wJY5XdZDgCs4E3QhR5XneHsJISlQCzgYqNkJdcdGp0XrIUZwbSpA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607777921; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sxoNqSYapiGtMGFOuQGAr0QDBJi2mQgLankMvhDu6mg=; b=MbJtfl6joklMWG3SRZBm0NXgzupIeNu8C/4+7SO8v34JGvBtpQ4DVTZ4vgSbcEXchy4Dl/ gzld1jUjI86hkXBA== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq: Provide irq_get_effective_affinity() Cc: Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20201210194042.967177918@linutronix.de> References: <20201210194042.967177918@linutronix.de> MIME-Version: 1.0 Message-ID: <160777792133.3364.14572344639030307980.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: 276b1e6e6fecc2f138c72519705dabc8bd01ffa9 Gitweb: https://git.kernel.org/tip/276b1e6e6fecc2f138c72519705dabc8bd01ffa9 Author: Thomas Gleixner AuthorDate: Thu, 10 Dec 2020 20:25:40 +01:00 Committer: Thomas Gleixner CommitterDate: Sat, 12 Dec 2020 12:59:02 +01:00 genirq: Provide irq_get_effective_affinity() Provide an accessor to the effective interrupt affinity mask. Going to be used to replace open coded fiddling with the irq descriptor. Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20201210194042.967177918@linutronix.de --- include/linux/irq.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 79ce314..2385b81 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -907,6 +907,13 @@ struct cpumask *irq_data_get_effective_affinity_mask(struct irq_data *d) } #endif +static inline struct cpumask *irq_get_effective_affinity_mask(unsigned int irq) +{ + struct irq_data *d = irq_get_irq_data(irq); + + return d ? irq_data_get_effective_affinity_mask(d) : NULL; +} + unsigned int arch_dynirq_lower_bound(unsigned int from); int __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node,