From mboxrd@z Thu Jan 1 00:00:00 1970 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 795EFC433EF for ; Tue, 28 Sep 2021 18:22:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 622896137F for ; Tue, 28 Sep 2021 18:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242167AbhI1SYF (ORCPT ); Tue, 28 Sep 2021 14:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242150AbhI1SYD (ORCPT ); Tue, 28 Sep 2021 14:24:03 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A24C06161C; Tue, 28 Sep 2021 11:22:23 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id s16so19697614pfk.0; Tue, 28 Sep 2021 11:22:23 -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=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=Hoy4HcV97uiRKlrKZ8mLkU5PvdCJfz+bpA0IIx93/v2A/84zOx3g9XBn0knqgZ36js Hq/B3hunA5byE1eIX67a122f9V6A3fRqAhPvMIecJt5jPG43buORW+JCAMBSS6Yagyu2 Oc3/qsqo6qoRyA7J8Q4CYozEslv8uBpaMAfBYT+9rJP3S/Z5DG9vkjte85EEVq0Varov PlagZ25JzmaloPZugg6nlLdfOGX3Y8RdAQZMHTdBsCeBkzlkJAMQsjUNQHcC66nRj/aO XugN6AIxQUDtYH2EMQAJcu2k4HhcZz6TxPW4SgD4U8qTgIaDXGobqZZO5NX/scr391u0 pjXg== 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=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=GRK8wkjEvxQkt9MHrdWBbRgnUUbYSM7CE1jpF2z2JHTqbCecE2kjjGucJd8VeRp4Gc 3evfqxoTqHTjsJAEeKIdLel3vo51tJ0gYbVhaF4G2UKOzQe5NQnQ+a9MIIb83npjf+O5 daTW/9CwHMceQdSctrikyyPm07zPnlyD6eI6oy9fvpj6foch+zn4P0/B0cEDy9CkW5X0 CDp+r/JF90EdsM4D9PflBFiYjMK+lh64loASEp6leXP+pF3aRQgJS1m6wqpIFFNifBPj lbEHgoSxWhK1uFNvw9Jur1dwegDZkCfyq+90/c4WCOEqX+LojOJP9nyyT2fK9/fev50z iUaQ== X-Gm-Message-State: AOAM533kNUnx5Wn453Bpt3eLFaU/fRFoKr0DHri8QmsmyxDUcBbqVoiu pSWdcxFJHnh1p4N0cVw2Fvu2NC6L6Fo= X-Google-Smtp-Source: ABdhPJxyxge4NVt6pGsy8e42QLleQv658qttZI6/lvxewzvQ6eD3yNOrWrjwbU0WyM3FBqN1mN1KJA== X-Received: by 2002:a63:9d0d:: with SMTP id i13mr5800357pgd.117.1632853342879; Tue, 28 Sep 2021 11:22:22 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x19sm20855288pfn.105.2021.09.28.11.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 11:22:22 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Thomas Gleixner , 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 , 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 v3 01/14] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Tue, 28 Sep 2021 11:21:26 -0700 Message-Id: <20210928182139.652896-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928182139.652896-1-f.fainelli@gmail.com> References: <20210928182139.652896-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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(); -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 DE471C433F5 for ; Tue, 28 Sep 2021 18:25:47 +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 B18CB61371 for ; Tue, 28 Sep 2021 18:25:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B18CB61371 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=GFTOCqXZ0ZXYH09bSP9Q6xGFHnT3zTSsLAUrH8EMfSs=; b=GoR5aAEDgyVRDa L9F8KdDQHSaK2CX0eRq5s1YEz4iQbpiKkHEdYXxo28yE/1kCdfx1dd1jMifFQY59HUWuN4TpY/rfz 2Wh8tBEOn2id0deXXC3zBplvxLqmmsabdZeX7t3xa3RP4xzG57RUMhWv+/sSRJwcbC+dj90kTxVmz KA6kUzNaBZ/oCTSn+px0TdIorKc0r88gpuAGwt9EuqUknhGJJISd+KErjTl/NxQ99uh4wdnnTFhCn C4ly9Q4spYYPaHz9jjVL4PRmZkohu9PvlJyAEzK1B7XcsvNaU1Ro6GKf48FR0FbzCfiE5vuMebVKz F1JFdzcSgGFCXE+2w/EA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVHkT-008ODC-Oi; Tue, 28 Sep 2021 18:22:37 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVHkG-008O8X-3D for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 18:22:25 +0000 Received: by mail-pf1-x42b.google.com with SMTP id w14so19648209pfu.2 for ; Tue, 28 Sep 2021 11:22:23 -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=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=Hoy4HcV97uiRKlrKZ8mLkU5PvdCJfz+bpA0IIx93/v2A/84zOx3g9XBn0knqgZ36js Hq/B3hunA5byE1eIX67a122f9V6A3fRqAhPvMIecJt5jPG43buORW+JCAMBSS6Yagyu2 Oc3/qsqo6qoRyA7J8Q4CYozEslv8uBpaMAfBYT+9rJP3S/Z5DG9vkjte85EEVq0Varov PlagZ25JzmaloPZugg6nlLdfOGX3Y8RdAQZMHTdBsCeBkzlkJAMQsjUNQHcC66nRj/aO XugN6AIxQUDtYH2EMQAJcu2k4HhcZz6TxPW4SgD4U8qTgIaDXGobqZZO5NX/scr391u0 pjXg== 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=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=c4ZM2QWJ7N2tzDMLwOxmcjvQE8lG6MCCLjbqj2eTHhwNCNHi2+oza1dnFLPPAMTRfn TUY7mi/cIHPp84QoPxdojH7IypJnd27N/6TY1iZS1PP3j/mPVWsCk0k0h63chhjh8dfR rOrb0Ba7f7Y7LIXIBa5DF9n+j1KTJmWcz2jp1rftc+ix60WyKfurn1zF/UmpfvQaxPXp hafQAjTgQNKFshK2KAi1cYH1VFy2zE5s0H+0wMtraOcxbc3X5jTsb232Yv4v0WZ+1j5l NUQ3mBhBAynkRHmA2E+XOUC50C9OIKKTZUEkldj3Qo2beaQ7d7nyIaP0HH9E4ZIJP2wk DWWQ== X-Gm-Message-State: AOAM53030E6bKaVXafPaHuppHZUpWQs6kd6f+jNyp6cQxJ6i6SVggsjS vF0MwcE3Q8XF/6EPrN7JmDw= X-Google-Smtp-Source: ABdhPJxyxge4NVt6pGsy8e42QLleQv658qttZI6/lvxewzvQ6eD3yNOrWrjwbU0WyM3FBqN1mN1KJA== X-Received: by 2002:a63:9d0d:: with SMTP id i13mr5800357pgd.117.1632853342879; Tue, 28 Sep 2021 11:22:22 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x19sm20855288pfn.105.2021.09.28.11.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 11:22:22 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Thomas Gleixner , 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 , 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 v3 01/14] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Tue, 28 Sep 2021 11:21:26 -0700 Message-Id: <20210928182139.652896-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928182139.652896-1-f.fainelli@gmail.com> References: <20210928182139.652896-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-20210928_112224_173121_1C463961 X-CRM114-Status: GOOD ( 17.43 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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(); -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel