Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5141732pxb; Tue, 28 Sep 2021 11:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJvyGy4pu7xA7jJSXB28BjSERMShQhzpBII4aCworqKB/hHrVaxUyzUJ5hSVzNW44OUYrW X-Received: by 2002:a63:f5e:: with SMTP id 30mr5719444pgp.283.1632853406737; Tue, 28 Sep 2021 11:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632853406; cv=none; d=google.com; s=arc-20160816; b=Bk+IRUEC+O22mq3hwI3adxeL2kXF5/CsVbNN5Gs1lbFMBtjBsLLQRHY7VUqq/gVmpf 3n6jvWSRtjYzjnQH8jVOu5sNy8eL2Dr5YjwqUfJGs41Dv2ta82MC4drZToQQQ+Q32wMm 6ngdTcOsixLjiImqQVlHhVkInglZgpBemfJCh0uzNP7oVsCNawUawdMSUz0vMPLopMTu Hmx45z7A3/Cj57nvrzkAgUBGoW3vIA4SXyREH9TGqqHecVP/lrlfjBMrZ77o3PsUf76/ v2lG4o3AvAy3tEhZhRpzRcPSOMnjXoATW3/DyjFxo2Liz9CgN1DRbKzrqUKyPWXdWBeh N03w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=fLe7o66R3TkxpRy2mkFdugNJ28qSLtT6QRpEALRqwTWreOAqoohQ9NB+BCSaHs1TFu CBubK6N7jOEl7O/LkS84tmFj8Md0aKnKOEeka5Ln5+wys645xsXIK3oGuNh85h4zuLgR Q6yaYvRy7C9o3QJ/9LaLNNpJLqtpXamVtUOWnLzRST0L1VTOwO8CbfsGB08bx3/LNlSM K3x4tCrcPl8UYdBJP++rQqh/nGOs+qJOoZRt1ZPVXeCOUye6HPxzd5dAIALJ7QWbwJCs 3HDVdtDeVt2iRV2qZ+02T7bfTLi8jJBZRuafqkj5+NbYA+jq0mFEdwEVyy3lhTjj9dWc QDFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Hoy4HcV9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh9si5298696pjb.93.2021.09.28.11.23.13; Tue, 28 Sep 2021 11:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Hoy4HcV9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242156AbhI1SYE (ORCPT + 99 others); Tue, 28 Sep 2021 14:24:04 -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-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