From nobody Sun Apr 19 02:15:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64397C43334 for ; Thu, 7 Jul 2022 08:50:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235428AbiGGIuR (ORCPT ); Thu, 7 Jul 2022 04:50:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235343AbiGGIuG (ORCPT ); Thu, 7 Jul 2022 04:50:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6202F326D7 for ; Thu, 7 Jul 2022 01:50:06 -0700 (PDT) Date: Thu, 07 Jul 2022 08:50:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1657183805; 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=CIqB3lqmfF/tCeHVhFSym0/aQP+f3lSmEFisKgrZPaY=; b=Ljh3PhFM9qHbN7rIVO0/izrDE7oIAElb/z5fe/oz4aYjElbDFvhBewSkaWeidBK6MaTNdU 4uanEvQMUeA1hzxbFrtDOX9Y0rc5dk3WSbLttn3mzGhgtsDF1oW+PFiQejUubf9QwmbMsO fkv4tG++ExT5kYJK3Dkd4/g0/DlqAK0NwWyl3ksWoj2pgFNKyvyoDZgF6yR47XEUSBoNSw DtQwZGcdzA4/3NTDbhNU8Rh6ECR6fFvybmJdbiY7eekOTNgRzrOqn1HO3HzZ/lk8riT2bB geagAqumVu3syNb41udFCH+qMwpGlrXm105NLjZT9qanAXoy7rel42DFLTGt4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1657183805; 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=CIqB3lqmfF/tCeHVhFSym0/aQP+f3lSmEFisKgrZPaY=; b=meOUTEcUxSnCZWmjAgsyDK/BR442wNvaabUT9K7bLvj6ZT3fa4es1OeP5uGYLVd5RLfurd ZMPy7fyCiTVI6vAg== From: "irqchip-bot for Samuel Holland" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] genirq: Drop redundant irq_init_effective_affinity Cc: Samuel Holland , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220701200056.46555-5-samuel@sholland.org> References: <20220701200056.46555-5-samuel@sholland.org> MIME-Version: 1.0 Message-ID: <165718380398.15455.12411017966126102035.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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of ir= qchip: Commit-ID: 610306306aaa56ab324d03a55138ea611be9e282 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-plat= forms/610306306aaa56ab324d03a55138ea611be9e282 Author: Samuel Holland AuthorDate: Fri, 01 Jul 2022 15:00:52 -05:00 Committer: Marc Zyngier CommitterDate: Thu, 07 Jul 2022 09:38:04 +01:00 genirq: Drop redundant irq_init_effective_affinity It does exactly the same thing as irq_data_update_effective_affinity. Signed-off-by: Samuel Holland Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220701200056.46555-5-samuel@sholland.org --- kernel/irq/manage.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 8c39631..40fe780 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -205,16 +205,8 @@ static void irq_validate_effective_affinity(struct irq= _data *data) pr_warn_once("irq_chip %s did not update eff. affinity mask of irq %u\n", chip->name, data->irq); } - -static inline void irq_init_effective_affinity(struct irq_data *data, - const struct cpumask *mask) -{ - cpumask_copy(irq_data_get_effective_affinity_mask(data), mask); -} #else static inline void irq_validate_effective_affinity(struct irq_data *data) = { } -static inline void irq_init_effective_affinity(struct irq_data *data, - const struct cpumask *mask) { } #endif =20 int irq_do_set_affinity(struct irq_data *data, const struct cpumask *mask, @@ -347,7 +339,7 @@ static bool irq_set_affinity_deactivated(struct irq_dat= a *data, return false; =20 cpumask_copy(desc->irq_common_data.affinity, mask); - irq_init_effective_affinity(data, mask); + irq_data_update_effective_affinity(data, mask); irqd_set(data, IRQD_AFFINITY_SET); return true; }