From patchwork Wed Oct 20 18:48:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12573051 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADCEDC433EF for ; Wed, 20 Oct 2021 18:52:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E27A61052 for ; Wed, 20 Oct 2021 18:52:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6E27A61052 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dX7z4Kl/qXNg24Rf2jbO+TrgQCc2vwgDm0pndgG8lAM=; b=meKrCGf5FGXgSL 7yTo2u8G3Wkj0oB6HNsjcW7BCbsijbVuZ8EUh7HpMWebj/9BlBBaA5oiGe/d28Jvu4FZLpjY8sF5A HN1kqCUSGMhPEt2VJB8Fo260p8YAwkl8VyYEgmhxaz8yadVQ4/mAtrsqq5bFEJK4GFKzJvDN5ECS+ iyRGdJoK74aNdoMrlVkQ4Gj9j1A9Ma3RK3AyXrMp9vib1oxWJrfkvA8BCXl22tbMbcCEWWU4lzGAC h5JlsejAmiB2uyVaO9/62Y0bDvs3wnfDODUTGP91ER5aWh352rtDaO4VW0p/oBposAhg+2j1hmSBv R0/pWymoXVCEe2JapAuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdGg2-005W7T-Ab; Wed, 20 Oct 2021 18:51:02 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdGfY-005Vub-4z for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 18:50:33 +0000 Received: by mail-pf1-x42a.google.com with SMTP id o133so3726589pfg.7 for ; Wed, 20 Oct 2021 11:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=knXL02VOmkFLU9YLWF/5g5SfaxjLRPWcMFGGkfQ2MJo=; b=CwnpnmqoUyzLPixiuryd7FzMM5VmBOzK2mWYjj4QKPObFUKVSD2YTl0IuVjioR1efF hO/I7iPFWkxHOuuUjnkZBdHbNxwOVAOAFwMx2gNIEHHFZpf5AbariY/Hh3adtGFY2oM/ K8/YWv4dateizvYxq+XyVSPFnqsTDC9Q6FC+vpJZQ8chIhHsdUeBWhQo3xVdIESv2Wku T//3yC6Y7rLkIDzxGQOU60VLlhuw3hFmjw1UN1Za373gXRcs30OH52LLtP5YanCHzzq0 4oxVA3NHHx7fcF+LXh5JiWz0/OiV85z75JBZykZnHTDmOTVFR0YtaTvndGXZeo98YdOf eeuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=knXL02VOmkFLU9YLWF/5g5SfaxjLRPWcMFGGkfQ2MJo=; b=2cWAiacVQPEZOf3SoO6v09jEjMHXaf5RCrUQjvBJU4t7OO2cgyVY1qbnxbdw3QRXF1 0NU0z8zUqtcHK5S+u/DqsHZygjrCIoozz8OIdNfFwAwI1DxOf8PQB+UxhkDlIcukyYep 1u/d+xaHg445wAI8AGqeOErk6IjOoBK9snIWkCnJHXwhISQlHdNbX7ayjz6dvPVhEggU g1SnhLiH3ByKDkyW08GsNE5xPautxoXkQl6kAGjKwAmI2Z+Xl0zc3Di08XkvcOlU6rBg HLuxvqUemjfmIlXxc38zVs6McjP2rDpwgF7KX3xg721Ntm2jklu8JIXuGths68//L7gy 1JGg== X-Gm-Message-State: AOAM533pmR9UGsMUfOHikAaasp75t4GC3YwaAuBTAWa3V8CSZBpLWoTq 982W/NsaMm9zUwDg2tH/LYM= X-Google-Smtp-Source: ABdhPJzbj1QnVdC00Dq8Zv2WOsoZwPyQb9sp5RFakZ/P6+eWTPhc+1XfO06ZwHAyNL4/qFNke95Lvw== X-Received: by 2002:a63:7b03:: with SMTP id w3mr752742pgc.285.1634755831288; Wed, 20 Oct 2021 11:50:31 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o127sm3267863pfb.216.2021.10.20.11.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 11:50:30 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Thomas Gleixner , Marc Zyngier , Rob Herring , Frank Rowand , linux-arm-kernel@lists.infradead.org (moderated list:ARM SUB-ARCHITECTURES), linux-mips@vger.kernel.org (open list:MIPS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH v6 02/13] irqchip/irq-bcm7038-l1: Remove .irq_cpu_offline() Date: Wed, 20 Oct 2021 11:48:48 -0700 Message-Id: <20211020184859.2705451-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211020184859.2705451-1-f.fainelli@gmail.com> References: <20211020184859.2705451-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_115032_207284_40070A03 X-CRM114-Status: GOOD ( 15.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With arch/mips/kernel/smp-bmips.c having been migrated away from irq_cpu_offline() and use irq_migrate_all_off_this_cpu() instead, we no longer need to implement an .irq_cpu_offline() callback. This is a necessary change to facilitate the building of this driver as a module. Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm7038-l1.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index a035c385ca7a..750156217c82 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -221,33 +221,6 @@ static int bcm7038_l1_set_affinity(struct irq_data *d, return 0; } -#ifdef CONFIG_SMP -static void bcm7038_l1_cpu_offline(struct irq_data *d) -{ - struct cpumask *mask = irq_data_get_affinity_mask(d); - int cpu = smp_processor_id(); - cpumask_t new_affinity; - - /* This CPU was not on the affinity mask */ - if (!cpumask_test_cpu(cpu, mask)) - return; - - if (cpumask_weight(mask) > 1) { - /* - * Multiple CPU affinity, remove this CPU from the affinity - * mask - */ - cpumask_copy(&new_affinity, mask); - cpumask_clear_cpu(cpu, &new_affinity); - } else { - /* Only CPU, put on the lowest online CPU */ - cpumask_clear(&new_affinity); - cpumask_set_cpu(cpumask_first(cpu_online_mask), &new_affinity); - } - irq_set_affinity_locked(d, &new_affinity, false); -} -#endif - static int __init bcm7038_l1_init_one(struct device_node *dn, unsigned int idx, struct bcm7038_l1_chip *intc) @@ -396,9 +369,6 @@ static struct irq_chip bcm7038_l1_irq_chip = { .irq_mask = bcm7038_l1_mask, .irq_unmask = bcm7038_l1_unmask, .irq_set_affinity = bcm7038_l1_set_affinity, -#ifdef CONFIG_SMP - .irq_cpu_offline = bcm7038_l1_cpu_offline, -#endif #ifdef CONFIG_PM_SLEEP .irq_set_wake = bcm7038_l1_set_wake, #endif