From patchwork Tue Sep 28 02:27:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521577 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 8A9D7C433EF for ; Tue, 28 Sep 2021 02:30:29 +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 5A18B611CE for ; Tue, 28 Sep 2021 02:30:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5A18B611CE 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=FGCFaE3SqZj7H+ bFncbMPJwrYJMKeedgecQIyTdvQHEXbg8kNJDh/8fNKov8opXZ41neUIq4TL+FaBFKgFZNOzlg88M MbV01PbwoYp+SOdrX9YrPo5i2S9/QGRiHRq9dggrddiR+YmdBr93D6wzThK0uWjUJJw0DZZxC2E37 RvRq6MrobGKkt9wLDOVc+LBKkCV1soykuvaOiZiToSF0Ivx8g3jD6Pp8NVx0+7wpJ/7rtHX8W3Ggv mjUa3a/faUmvvdQfWY76YcUMu6zHeM7ShTrH5Kij8nddv7dULURbZtrH/wXnxyPtkjkHst9g47GGa vTvjHoalDxEdKzlBPBCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2r3-005GAL-S3; Tue, 28 Sep 2021 02:28:26 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qw-005G8J-5I for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 02:28:19 +0000 Received: by mail-pj1-x1033.google.com with SMTP id rm6-20020a17090b3ec600b0019ece2bdd20so1606130pjb.1 for ; Mon, 27 Sep 2021 19:28:17 -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=IEpuAnVKkRGGpmkR3JRYp3hSXaykp/XcRH4sCNW7S2bxpcsm1bIiVlnvIKBSxg1ZI4 k9gaPOetvKoi8TYXaHhlgmmLySvWPMMJKjka1HLG8Exb33IRonmQg1+nwy5deFVEDQ63 9MpKnfkfr237ysWst9gq9euNuC8z0HlyCga5Y+WmoO2g39tAFcDEbAd+ZtFPYmSh/2cF 7a2lnqpkh3JehXkX03WI15wvaMiBKEZdNpqmpMNXBojuUQAoVwRPKgnzKTXYUTwgvWGw 3r5IkHHSMOuLHq0Iyvf9ufID+G/9hvRT+mTRd/FU3mP/E4UoOEm72LQ3VgjvmlPMiQWO kh+g== 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=uYyqmuRcMDiw8JuUrVXOTgHL8J4HMrTfV6/8Rla+wP6itOnM3dX5D/o3V4bcXHRCN0 df9uQlicBTGNiN4znFsI3ucB+C3CaEkER4aQsjWTycY/gTTw+a2uaHrWCs7Vi0ySyw0X gWbElXyBTM/wkMA0pfc8r7W63UXcfqhVuq3MDGG3y0Gkosg2CtcZcI8eKrBWhUT7vmwn lrWJTTOuI4YgwZ54vfyLb+WtH73uDdqQBIrVxk6OTW3OztnZY8r5d7T/vCMzLNOtNryK Ktbn8HOzQTTh9qKbaJzBSs0zvogHdI4cZKS8/SyZnRbhjBd8OzEgP1B6MFnAH8il4tPi bSJw== X-Gm-Message-State: AOAM530G17TrbBPe1mwu31RCCXwbyqQfh2TWxicyrwHBiuXQ8UP9UOr6 LgDdd4yH5w/NN3Pp3Wm0R2Q= X-Google-Smtp-Source: ABdhPJw5V1IpWkN3QRbTPt7CY9BysyOWfFNGRznfjsEbS4Ij4aNIezxGBaRFECdTUh7caWe5aUSBRw== X-Received: by 2002:a17:902:c086:b0:13e:2b52:29e1 with SMTP id j6-20020a170902c08600b0013e2b5229e1mr3023429pld.8.1632796097360; Mon, 27 Sep 2021 19:28:17 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:16 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Russell King , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Catalin Marinas , Will Deacon , Yoshinori Sato , Rich Felker , Thomas Gleixner , Marc Zyngier , Rob Herring , Frank Rowand , Ard Biesheuvel , Mike Rapoport , Linus Walleij , Andrew Morton , Geert Uytterhoeven , Arnd Bergmann , Guenter Roeck , Kefeng Wang , Mark Rutland , Andrey Konovalov , Anshuman Khandual , Valentin Schneider , Ingo Molnar , Peter Zijlstra , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-sh@vger.kernel.org (open list:SUPERH), linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH v2 03/12] irqchip/irq-bcm7038-l1: Remove .irq_cpu_offline() Date: Mon, 27 Sep 2021 19:27:06 -0700 Message-Id: <20210928022715.369160-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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-20210927_192818_223047_B04D0845 X-CRM114-Status: GOOD ( 18.23 ) 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