From patchwork Tue Oct 19 21:58:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12571195 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 58962C433EF for ; Tue, 19 Oct 2021 22:02:49 +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 17E9A60560 for ; Tue, 19 Oct 2021 22:02:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 17E9A60560 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=r3p/2FpQ/HCPoEcUgtvRJR2A0QvYdg6cCV0S+tMckTU=; b=e3GRLB9iIiDV3A NOesgMOOErozipPXVSocnFc+im0OXZrrjpTx2VXiIgiMLS/zELXKDwlJPRvxKgLMHTFCgueoqxEcf cNee59RUqdHNzF5W3otUN78LIG997dsB2VdOjN0t6t7VJYKROpiLqRYfcWpkuGaW8WtyrxQyYi64c 5mxw1w9HdHoOjbDe+a5IE4OSh7AaBoGckYN6F8xrIc+IJcmWl0kgrUqA2cBtwVs5L+Ir07CbK6dqS LR9OYvY+i9hXzV4fjbCaeFdxFqDX+MaV35TGJqR+dLkjAteab7zO2jLSIJCLO9PssP34MSMowcd+B eHJ8Ft0xWuUK2nua05Kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcxAY-002jrw-48; Tue, 19 Oct 2021 22:01:14 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcx8T-002imv-BH for linux-arm-kernel@lists.infradead.org; Tue, 19 Oct 2021 21:59:07 +0000 Received: by mail-pl1-x636.google.com with SMTP id n11so14686734plf.4 for ; Tue, 19 Oct 2021 14:59:04 -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=znmARRiQVkqC85lKLifIrCv0U2JcIdQKNsLQ6jRH+xY=; b=iOwxBK/TBiRJqvUSowWx2AA+29dqSDb4BJLm/ACFVY9kpVKPukdLQjJMjtIRG35jxz li9haYYODUCYEVlrXFPfWq5ITUkWgQHXdOF4IinFTkAgyLiN1CSU7YjqdR7g7CMSkyUY Z2KYctppGisktlOigbfAe6ufEkKiCWoHNj+v+UZOaRj4wrX0lKwRSG5+C36OAHSEAA20 ZCwTKxmNp9EZGUE/qpnKPULv7qAaCZr0ULSaJG5e4QgRgV7xpwUTF24lj65tawxl7gwt /ibDDCQH75MwkpxuHLxILX4XTnoX79ea9fMsyoIAaftpYjDe1+aHy1P/hJj8yAih9yX/ NWOQ== 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=znmARRiQVkqC85lKLifIrCv0U2JcIdQKNsLQ6jRH+xY=; b=7zIWHaTfIbcO8ya2I69Mm9WrqwoECUxiSF0k6HwZfx/Gcyd/5xvGDLZoywTt//nEkM hSMflpS64GOiGh0PirId5RueCA25Gd2ragDmmJgdvf6PNVbsbzpqM3hZxuhOmFhUDNtj OGBV5YhWJzKsZ4uiSQCfbvU5eozQ3eQZLA9n+Rg5SEzqCSHggn3ypc9qiVrzS5yQV/UT 3uEA0rl0lsKxfmpGduBEkGlWXvvPHEFQIsdo15C6plhomQG2+uQ+Tms1peawwHlkuxsI zB1+BH//BFMlRVX2wP3N+Kj0jiQh268kxMoTZA/biCnG07NtebzR2OuhQIq00Di5JRPF D/hg== X-Gm-Message-State: AOAM533m5f/Rq6n1iYOLDqHnm7vrm6cXFZa5lZ+qB7x5YLPxC+s10bgc ZmFb4LHhXHotCtwVtXBaMEc= X-Google-Smtp-Source: ABdhPJwmPwkzadG3IzGXM+TH9X3zzcrVGu+ztbuKjc6ySuF3D88YvREs89DstisX7TitObSh959W+g== X-Received: by 2002:a17:90b:4a47:: with SMTP id lb7mr2655148pjb.192.1634680744128; Tue, 19 Oct 2021 14:59:04 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id bf7sm139325pjb.14.2021.10.19.14.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 14:59:03 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Thomas Gleixner , Thomas Bogendoerfer , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Russell King , Catalin Marinas , Will Deacon , 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 v5 02/14] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Tue, 19 Oct 2021 14:58:43 -0700 Message-Id: <20211019215855.1920099-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211019215855.1920099-1-f.fainelli@gmail.com> References: <20211019215855.1920099-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-20211019_145905_451366_A81A82C9 X-CRM114-Status: GOOD ( 16.73 ) 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 irq_cpu_offline() is only used by MIPS and we should instead use irq_migrate_all_off_this_cpu(). This will be helpful in order to remove drivers/irqchip/irq-bcm7038-l1.c irq_cpu_offline callback which would have got in the way of making this driver modular. Suggested-by: Thomas Gleixner Acked-by: Thomas Bogendoerfer Signed-off-by: Florian Fainelli --- arch/mips/Kconfig | 1 + arch/mips/kernel/smp-bmips.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 771ca53af06d..2c03b27cec02 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1782,6 +1782,7 @@ config CPU_BMIPS select CPU_HAS_PREFETCH select CPU_SUPPORTS_CPUFREQ select MIPS_EXTERNAL_TIMER + select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU help Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors. diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index b6ef5f7312cf..f5d7bfa3472a 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -373,7 +374,7 @@ static int bmips_cpu_disable(void) set_cpu_online(cpu, false); calculate_cpu_foreign_map(); - irq_cpu_offline(); + irq_migrate_all_off_this_cpu(); clear_c0_status(IE_IRQ5); local_flush_tlb_all();