From patchwork Wed Oct 20 18:48:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12573049 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 92127C433F5 for ; Wed, 20 Oct 2021 18:52:18 +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 4D00661038 for ; Wed, 20 Oct 2021 18:52:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D00661038 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=OR/U8++0oNyoHs fRv4SwDbr7u7XpYfAkZ/JNdVEJdQqRZbWeYpw51qFsulM0uPZINRrBkdPn25CBki66s7t8eEKyqJ1 yTKMzhFyIzN0fGJuUgQacJ6MWUaNSqPPLJgwPAWVD3YyKqmfkN4tyvKszf4PcIIfQiH2Fc8VCR1CG IHxwwttAJu0/fu1XWaDPU7ZkZIOJAaAo3aPbb/YfikSEoEl2ce2cQaHrZi6sn1I3Hwa5RWtJW+4Tq /ckKKE4qjSaSmjSmX0jRT9lCs4+Ext6QdtA2p37/s5ltFzn8ptTl/1VBDmLPcN3EQEnC7vhsSs1jL GtBt4ys7RzFZhtfhZ38w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdGfo-005W2V-HG; Wed, 20 Oct 2021 18:50:48 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdGfW-005Vu4-KN for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 18:50:31 +0000 Received: by mail-pj1-x1030.google.com with SMTP id np13so3110490pjb.4 for ; Wed, 20 Oct 2021 11:50:30 -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=AFQnxzJBoUJOr2jrRbs0eEL5JnHsokQL0/MSRypi9D3z2Cnb8e6xsjRopqx6kJsXzb 3/vfQ6JU1JWPLsYjesBk7L/viivaf+fmLAuv0k57UJd9S1S1isaQ5VdSnW7UInl4ZY8P rBgeG6ObrlPtOxQDgf/DY8ycdY2jKZIdzE6uPE71NVJg/xSZZ3g6XbATqHaYp18feDtZ oDZFWqiIkqhN1HgD+r20lHH0I87xBle9pCQD6g8yQwQN159mi92ouY7m9/RzbkaR1xmB NCCFB38R+ZCnmoFDrkL01g4gf5dou78VIXg61tr86Xq6zpZRXiXCduGeA9dsoxplsBCC spvg== 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=kumqNDBr3aewEoUKiE9YQG50Rc7q7DSAdeJTYqJMCZl7eT7FEHJhzD4jwzjAIYxyAS f/R5QkC4/Ga4MyrIP0718sqoIl0rfmFxSPEfYgkwtbdP8nHrolEEXIjUw5yjlLe4Ptxs 4K6BKnNR5/OX69hf7CiOi46u49Ge4s6skD2p4pWIhllUPIYE4zAGlPmIOHdWEBgAk//u /WHzmrEfreUMqy3ZpyePaSaMtQGwbJaqcx2V+uaBeU/UmrJJGQOJwn05ZPPFAcn/xH36 xAnqTIkMSEOWcbEcpYiH1OcMQ8CJfb7HRO2VAAjZdV+RRN8uLoJH9hMkD08xzoWtHSYE kz7g== X-Gm-Message-State: AOAM5313jyKCfaFTYD6x/D2ZQJGCaUDnSIRKLl/Xw6lYwmkRR8ajoQcB VSlJS8N1Ym7+25JlmkJXFAo= X-Google-Smtp-Source: ABdhPJz2zVU2zmA1USXKi8K+wWLy6wjyOoeBBh9yjG0hpBbXJb53QVX7O+TpCZLJPzXBxUCjv3wZSg== X-Received: by 2002:a17:90b:3ecb:: with SMTP id rm11mr886865pjb.110.1634755829860; Wed, 20 Oct 2021 11:50:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 11:50:29 -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 v6 01/13] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Wed, 20 Oct 2021 11:48:47 -0700 Message-Id: <20211020184859.2705451-2-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_115030_690690_41CBA7BB X-CRM114-Status: GOOD ( 16.76 ) 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();