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 21F09C43219 for ; Sat, 9 Oct 2021 02:20:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09E3D60FD9 for ; Sat, 9 Oct 2021 02:20:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244384AbhJICWd (ORCPT ); Fri, 8 Oct 2021 22:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244234AbhJICW1 (ORCPT ); Fri, 8 Oct 2021 22:22:27 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEFBFC061755; Fri, 8 Oct 2021 19:20:30 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id k8so1850156pls.3; Fri, 08 Oct 2021 19:20: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=HuYOJMsuZ5Li1XRjQJpwwVLmkPRJfGKnjBoRjBAS5zeqnc8lCWIKTWTvwbCvJ+o4ZI +RQdB5JwpQaPDtiOy5+m8gnQRWXS85ZK+5nMSrR/lx8mp5xPEkfpH/GS4kopN/na2yjJ 29DMDXouNvov8TA+Am+SPb8wzBAtsN84V6iiF+9CdzLwUIqB18URDBIncmoB3MQyieX8 4lMSZQVgu0HOEPdvSDpEjcyXSNy/k6gSaJXSrtTRyYmuWRbCVzpJu5JmMxpExAhcfQPz 5FGqZYZEi3gi6Fo4cuwjI7pOBfDN8qmpnIwkiYGNk8nFC5C9P6mz8rreMrCGpx4DUzoQ /yuQ== 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=qg5m4QNiU3IuoGiZpiukB47ENk4ITGyJAjil2spsbAwllJbRcDzrjk5fvgkrPkAQPa 4iazWY188DP8hcNfv/4wL4wyVYJdLhrz5Ud7BOI4TVfK7mizLWiTvdGyd5Fu3j/Okh1Y FzPUlh3PE7vWJQcgMMZAn7PGADcI8L7yJx8zAHuvgul1mZd5GMVehF7toTS06okoXb6J snSm333mvrWway9N9fbakO+2IYgaVho8TP+akXLITJi9HAh7WdPIKKV2CylqDoKDfIzQ nUD3vOYAoNT4YKnSfQlmfuqoE9s98AQ4oD4Ke9FMvL7H4eZ4DJZe5uaR7dvLEryF4uNC ruhA== X-Gm-Message-State: AOAM532m0JyNWUeX2hezcvN2UY+Cy4VD1R89g00WAZn6FYori9a5FXO5 Nif1sEtga5h7IZMHYLzO2WYtqDl+CA4= X-Google-Smtp-Source: ABdhPJynV9gKczr8GslI4IAihm3p6jxKMIoLFMgQtYbWS/Y0NWCgFTjd2R0DmPdtmlaURv8r5n4D9w== X-Received: by 2002:a17:902:e793:b0:13b:9cae:5dcd with SMTP id cp19-20020a170902e79300b0013b9cae5dcdmr12772844plb.53.1633746030043; Fri, 08 Oct 2021 19:20:30 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id pi9sm444692pjb.31.2021.10.08.19.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 19:20: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 v4 01/14] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Fri, 8 Oct 2021 19:20:10 -0700 Message-Id: <20211009022023.3796472-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211009022023.3796472-1-f.fainelli@gmail.com> References: <20211009022023.3796472-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 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(); -- 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 2E608C433EF for ; Sat, 9 Oct 2021 03:06:59 +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 E98FB60FC3 for ; Sat, 9 Oct 2021 03:06:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E98FB60FC3 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=xolThFcxp1aNHz oJxIiFRM57Wy2kdG51rElZT9rCLUkdDuwvB7g4flzcdOlDiU9l+5CYUrJO9XEwQzGcf63qD8+JvkI 2kQVmmG0cX3xsxgfSrZ4IfWzPy7vg8aNRGH9fV8swX8LDpSuT+Z3YkI5UBVeD5N1GIunSQST1h6xS gD5t7bRAyXjzSAko03AXfn8qzlU22fip7XlLfv9V5qPv0a8GoXiYjyXR8NSJZB04vJwZakq/pVCWH LKVo9cEgDZ4VmpeTHX4HqccXEi4Sua3o0kIX1STLA/wmGIL5yVHW4ogx3ilpX1dALsTdFNEl6o8TC tgeaycIkzNujEe9XKzjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ2fH-004osi-1g; Sat, 09 Oct 2021 03:04:48 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ1yR-004Xpj-BI for linux-arm-kernel@lists.infradead.org; Sat, 09 Oct 2021 02:20:32 +0000 Received: by mail-pl1-x62a.google.com with SMTP id 21so1088565plo.13 for ; Fri, 08 Oct 2021 19:20: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=HuYOJMsuZ5Li1XRjQJpwwVLmkPRJfGKnjBoRjBAS5zeqnc8lCWIKTWTvwbCvJ+o4ZI +RQdB5JwpQaPDtiOy5+m8gnQRWXS85ZK+5nMSrR/lx8mp5xPEkfpH/GS4kopN/na2yjJ 29DMDXouNvov8TA+Am+SPb8wzBAtsN84V6iiF+9CdzLwUIqB18URDBIncmoB3MQyieX8 4lMSZQVgu0HOEPdvSDpEjcyXSNy/k6gSaJXSrtTRyYmuWRbCVzpJu5JmMxpExAhcfQPz 5FGqZYZEi3gi6Fo4cuwjI7pOBfDN8qmpnIwkiYGNk8nFC5C9P6mz8rreMrCGpx4DUzoQ /yuQ== 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=HvFa610U0qkuMgp3dl1dq8ltA00reN7xmcm+O92hlCSVG80KtHoN8S6guvCNbBjpFk 2KP04R9aWLehAbokXFC/USfAPDd+GaySSJ1Ss0AnswjOi0MLEJgjvLEYspGnPIbHVVKv cQCVhRsRlNxCHLDYSauRvJFV5HZgdU7bqTiA0AUkywKNLodHJ/JMKv5V9jsPj6h6rwA1 HlNxuLD79dhLaSYf/xrdtW1J9q6jYD3gnDon6TL7kbH91s0hjJ/mxb1nx3OWfFTMee2E HbMOXH967G9ViIlL7P7CQVnr9EOSm2pDCmXgJCc4qv3l7X++xfWNFiQ0nN+0GCrpXR2O e8og== X-Gm-Message-State: AOAM532HfxXrWr+NoP8XoXVQm6OCtyfoXTFfFJl+0OGBm+hLZ7qcq0K6 5BjtCWfLefm953UYhpdz9JVHaLtpjS8= X-Google-Smtp-Source: ABdhPJynV9gKczr8GslI4IAihm3p6jxKMIoLFMgQtYbWS/Y0NWCgFTjd2R0DmPdtmlaURv8r5n4D9w== X-Received: by 2002:a17:902:e793:b0:13b:9cae:5dcd with SMTP id cp19-20020a170902e79300b0013b9cae5dcdmr12772844plb.53.1633746030043; Fri, 08 Oct 2021 19:20:30 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id pi9sm444692pjb.31.2021.10.08.19.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 19:20: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 v4 01/14] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Fri, 8 Oct 2021 19:20:10 -0700 Message-Id: <20211009022023.3796472-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211009022023.3796472-1-f.fainelli@gmail.com> References: <20211009022023.3796472-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-20211008_192031_445284_4C6F0072 X-CRM114-Status: GOOD ( 16.40 ) 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 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(); -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel