From patchwork Sat Oct 9 02:20:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12547255 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 A2285C433F5 for ; Sat, 9 Oct 2021 03:07:36 +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 6BCA960F39 for ; Sat, 9 Oct 2021 03:07:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6BCA960F39 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=a0xEDQDYsbtRwN L7ThkQJqyhCZCFZfTi24sfD3rD++sUknAI9q2DoyzSpWpgvbwHe4z6v2nXwBgDpE3tQmWQtS39Zis eIGxd5ocyY4c1CeQOdCJb1VN5GPnzsr0/Dt93sVL4SphnCiu/fLqJJO6wKXPRt27aQXEqHQCw9/Qx qO9FMaBvK2MzL1tgogShbh0XK4V5DL62ddD/AVyA8yBk1IBfr46pvgbGfd53YiRL6wgY1Ruma6bmM LiCtTrfW20O9Dtq/22VhfJ/qT8lGSZzJ0Q6+AWAKIVBJChDOXhGh4+4YOLlLRM94qohpzQYIr7IJA TjVJSY9gQzFX92LGKtZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ2gA-004pCL-FL; Sat, 09 Oct 2021 03:05:42 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ1yS-004Xqs-VS for linux-arm-kernel@lists.infradead.org; Sat, 09 Oct 2021 02:20:34 +0000 Received: by mail-pj1-x1032.google.com with SMTP id qe4-20020a17090b4f8400b0019f663cfcd1so10601907pjb.1 for ; Fri, 08 Oct 2021 19:20:32 -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=PMSUeeAYM+oSOKVpdeZKASGuomG/1VnuqZk/Uq6pcXRsTS+Ue+dL7ctnmO7CK4cyo+ uQEnzGeBaaKpmwDCTEhtv2mddWa3KWk2qvOcvE5ysHODe3eZ6fH5Z5Gl1Ic4OcEpBHFa lmi3ZYd1NXuS5I8nzIYe4ikN+QGK3JoE8T4KDkTGQ4Tmfdp5r3Kjz0h5ENzqMOXIQ8jB 3k4RpZ8vLi8FK+8yhQrdl2zJ4DdUTZjIRZkrwoFyKrMAyG+FkqXkN/VT/z/oP6H82ag/ mGJEdxxE56MvHnr5fX5ZrgbdcyKX3LKtrpHDxkj//f5OUKjzTXFHv1uX/mF9fSejdcKQ i26g== 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=LB1NGzn2DN28zRA5PkCuqVXcCWIDvIsTXBOmuOXYjE+mA/ITKsFuePH8XX+tKgULIv SXFLRLbwP8ipg/8KJxSKGM83W3RzwRQwu8bdqq2wmv1NKQ6u1KPTyhiKpFY4K0GS0GAs nCFYdlP59dyDT5QlbHqPkY2A+g4kST7HlvtsADZ17KvAuNHrbCgjCM+bx2uieGsMtMwl xmPbiZUSJZF4o1aM63TEEXEfzDbk5GG83EwTUbjFJs0TyBqAM3hL1PNbsevc33lT6iKP 1wcZk3PGZryD39snnhrThHM+Fd1hz3hAYtQfhFH8pchc60t68N/W7H6SnCEIuVaNQems iKNQ== X-Gm-Message-State: AOAM530+NVl6q7HIuZbDVBbmKhgtkej/6t7rHYCyHS7xs8fmtDqoTiSi rVGg56d4TrrxBnN8vL4u6tA= X-Google-Smtp-Source: ABdhPJzg2OrVUx8X7+f5WBVJ9F/oWRwsNiIZF7TwFPVn4Cq0sLkiujyN2p8LDToBroMMnAdUY/oE0A== X-Received: by 2002:a17:90a:7d11:: with SMTP id g17mr15405247pjl.19.1633746031721; Fri, 08 Oct 2021 19:20:31 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id pi9sm444692pjb.31.2021.10.08.19.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 19:20:31 -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 v4 02/14] irqchip/irq-bcm7038-l1: Remove .irq_cpu_offline() Date: Fri, 8 Oct 2021 19:20:11 -0700 Message-Id: <20211009022023.3796472-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211009022023.3796472-1-f.fainelli@gmail.com> References: <20211009022023.3796472-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-20211008_192033_052456_0A6F7445 X-CRM114-Status: GOOD ( 15.55 ) 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