Message ID | 20210928022715.369160-3-f.fainelli@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=7ONh=OS=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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 3EFB1C433F5 for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 Sep 2021 02:30:21 +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 09E37611CE for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 Sep 2021 02:30:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 09E37611CE 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=ZjA4xiHkafmrp+ iU8v5ik9iNw0Bchm09HA0dd0ShsLx/R+VICQB+QbmKHnjQCGUqJNhthf2vC08xQJ/cjoHDrsAVgSM 8TTvxeWSxh6ljKtWRMcuUSS/Ub2Zx553+vohi8ZOtgdqsrWRACCdFKlIPzQHNI/Q9WlW7X01UJO0I oOlWUMaKT+cNXgbBki4hEP4lu4VcWtNe5hUeMCFecCUfqmZMZBv80AfblSpAS6qlwvLjStYbrDcu+ 3uvoCVCU0CtuuD45fKUtQBM+H+//BkgciLz1ZrMEExbEyZAXHOfLuTfnVDNIm/SqgBhrULUUZCLd+ 149EwnIepZjXREKXukhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qo-005G6v-8z; Tue, 28 Sep 2021 02:28:10 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qj-005G5S-LD for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 02:28:06 +0000 Received: by mail-pg1-x52c.google.com with SMTP id s11so19588973pgr.11 for <linux-arm-kernel@lists.infradead.org>; Mon, 27 Sep 2021 19:28:05 -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=e6hUsgp9s+6hi7FCBSwpdIC1kHArvrqQ4n8QTdtgAoAMxX/qpQeVbi70ewlXcwVHrF tduiSMubvBsYxyU/ZCRx5j7UmiWLCXERE/GncKmEQa+79sau74qMWguGqbfnQ+NGjxRr 2OY+vZEjnX/foqslYn0A9GKA+7a9F/ECEY6GLtfDQiVPE+e9v4KN+Xhv2cnI3kmufPbb sHVn82nNvgEYY/Z45AQAO0fjHyy0gW70h/FRijjnkEwk8EMgaAlW7kS0MofxiFLIDbC6 /u5Oeoaf6AU8yWuwifuhAn9uFP9I0iNcFRZSTFJnJg2+Hh0W5RFaqyXaGWVW1XKW7UOh wJsA== 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=D5JxinT42njAP9NDXf5+fUnppwzeHKmAZpAUTKtcDEI8lM1XL4rkugq2FfcTeaOu6o cHf9C/9amFYwd/KZPWZZsbSG7Fg7DjyQGbRjsERLDz/mtCLRzKKbbwXdydkInFL8/LZQ T9rwHnAwG4YgXZ/CCcyU9qOemLr5HAjOCLEj+VnEUJFkKHp8+kdAu9kBp7d2j6T34MTj 1URRHACPWdvt9UA21090PICQT+5hr4hZs1GdajxY67X65KsChmVMuclsGN9nLWQbrt4q PZP1plL3EcRxZCTp7j+jhuJ9O1Vy0FFQkjKwGMfTELf1rqw0tj0ccuPfB1mr9/7BJ0DK EnJQ== X-Gm-Message-State: AOAM533aRKpbnaaIwhBNNwG1lxlF6BJAen3EqTtb6evgjjS9utqKCC29 cP0IuLzB82tNblcxdzzBegM= X-Google-Smtp-Source: ABdhPJyobfyudPj6n9/ZS0q1ZaVWwjhrSnMWDSUeZb/5aL5YPeLO6y66yGwrVd9gtKKVeT99JygWWw== X-Received: by 2002:a63:1d2:: with SMTP id 201mr2448429pgb.2.1632796085141; Mon, 27 Sep 2021 19:28:05 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:04 -0700 (PDT) From: Florian Fainelli <f.fainelli@gmail.com> To: linux-kernel@vger.kernel.org Cc: Florian Fainelli <f.fainelli@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Russell King <linux@armlinux.org.uk>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, Marc Zyngier <maz@kernel.org>, Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Ard Biesheuvel <ardb@kernel.org>, Mike Rapoport <rppt@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Andrew Morton <akpm@linux-foundation.org>, Geert Uytterhoeven <geert+renesas@glider.be>, Arnd Bergmann <arnd@arndb.de>, Guenter Roeck <linux@roeck-us.net>, Kefeng Wang <wangkefeng.wang@huawei.com>, Mark Rutland <mark.rutland@arm.com>, Andrey Konovalov <andreyknvl@gmail.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Valentin Schneider <valentin.schneider@arm.com>, Ingo Molnar <mingo@kernel.org>, Peter Zijlstra <peterz@infradead.org>, linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-sh@vger.kernel.org (open list:SUPERH), linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH v2 02/12] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Mon, 27 Sep 2021 19:27:05 -0700 Message-Id: <20210928022715.369160-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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-20210927_192805_721912_CE2266AB X-CRM114-Status: GOOD ( 19.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Modular Broadcom irqchip drivers
|
expand
|
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 <linux/bug.h> #include <linux/kernel.h> #include <linux/kexec.h> +#include <linux/irq.h> #include <asm/time.h> #include <asm/processor.h> @@ -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();
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 <tglx@linutronix.de> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> --- arch/mips/Kconfig | 1 + arch/mips/kernel/smp-bmips.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)