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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4A47FCE7AA0 for ; Mon, 25 Sep 2023 16:29:26 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aDnrPgCGEpQxMOhAHIdw6KLpoBwuF7lG6iHD2FmuckI=; b=tvF3YeWG6RzkbU ZODlPLahYzLIRe1z+z44UMOZjLp9XzI5DGx6GRC3GRMTNLbDjFkO9cH5eZIBSBiHML63DNlN8R1jg vVxjyhtGXmXhPu5eF2vgO1mgsksNq3maegCZp3mW0uY45mwM5CyMqPWlp50ooheAfZ2iJUkXGzv0o yr1UF2UzjadSD1UAZ49WnIMRdalWXQzoNu5W7oveCdFw77Y8gc5HcdXCRFfwJEyUZXYGf859cT/wY 3W5Qo2ptRbCIBuKKP/Yak2ojTAbhKU/kdiSfMO+Ba1cE9S1MKO6hg1QENHJO6Bj/TA/WeMY0Gejqq /otcfYhebbOT9ajOfnFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkoS9-00Eewg-1B; Mon, 25 Sep 2023 16:28:57 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkoS5-00Eev9-1X for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2023 16:28:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jROqAEkQNpkWnS8v1ykP5/ZLrZmkwHf52pIZ146JzkU=; b=OPsoFGfj8SogLijb61TbCQuFSt r4U1AjausZZbDS27ervs0UVLeeq/WXWif6Bh/olU2Qkd/m88ZC7i50Q4IEiaSyOcgayZOj/gokqDf 9UjOInzdI3xWKacekNqsVxKIqdAhb7mCb+oe1nLzUtlxb+POA2R7L2yk1SUexyVkAICS06SwQu5Gx iurZp+pFY53XFqRieu4DkNjH1s6wiGpzRRAENsy4JQUVQtgWfhktUAeLli2UJKJrWmE5iZN7MaaRa RePP8EhvmHKz5NFOQjXgzyLWPE/f3Lmp9d+DJTdFija9ojwlpSnrC/R/Klx/ZYDf1TIyExMKpNErb cpI4VWNA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:48484) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qkoRs-0001Kh-2U; Mon, 25 Sep 2023 17:28:40 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qkoRo-0007xJ-Iu; Mon, 25 Sep 2023 17:28:36 +0100 Date: Mon, 25 Sep 2023 17:28:36 +0100 From: "Russell King (Oracle)" To: Thomas Gleixner Cc: linux-acpi@vger.kernel.org, James Morse , loongarch@lists.linux.dev, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, Borislav Petkov , Dave Hansen , Salil Mehta , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , linux-ia64@vger.kernel.org Subject: Re: [PATCH RFC v2] cpu-hotplug: provide prototypes for arch CPU registration Message-ID: References: <871qez1cfd.ffs@tglx> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_092853_517554_1F7F73DD X-CRM114-Status: GOOD ( 32.85 ) 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 On Mon, Sep 18, 2023 at 09:16:18AM +0100, Russell King (Oracle) wrote: > On Fri, Sep 15, 2023 at 09:09:10PM +0200, Thomas Gleixner wrote: > > On Thu, Sep 14 2023 at 15:51, Russell King wrote: > > > Provide common prototypes for arch_register_cpu() and > > > arch_unregister_cpu(). These are called by acpi_processor.c, with > > > weak versions, so the prototype for this is already set. It is > > > generally not necessary for function prototypes to be conditional > > > on preprocessor macros. > > > > > > Some architectures (e.g. Loongarch) are missing the prototype for this, > > > and rather than add it to Loongarch's asm/cpu.h, lets do the job once > > > for everyone. > > > > > > Since this covers everyone, remove the now unnecessary prototypes in > > > asm/cpu.h, and we also need to remove the 'static' from one of ia64's > > > arch_register_cpu() definitions. > > > > > > Signed-off-by: Russell King (Oracle) > > > --- > > > Spotted during the review of James Morse's patches, I think rather than > > > adding prototypes for loongarch to its asm/cpu.h, it would make more > > > sense to provide the prototypes in a non-arch specific header file so > > > everyone can benefit, rather than having each architecture do its own > > > thing. > > > > > > I'm sending this as RFC as James has yet to comment on my proposal, and > > > also to a wider audience, and although it makes a little more work for > > > James (to respin his series) it does mean that his series should get a > > > little smaller. > > > > And it makes tons of sense. > > > > > See: > > > https://lore.kernel.org/r/20230913163823.7880-2-james.morse@arm.com > > > https://lore.kernel.org/r/20230913163823.7880-4-james.morse@arm.com > > > https://lore.kernel.org/r/20230913163823.7880-23-james.morse@arm.com > > > > > > v2: lets try not fat-fingering vim. > > > > Yeah. I wondered how you managed to mangle that :) > > > > > arch/ia64/include/asm/cpu.h | 5 ----- > > > arch/ia64/kernel/topology.c | 2 +- > > > > That's moot as ia64 is queued for removal :) > > Okay, one less thing to worry about. Tomorrow, I'll re-spin without the > ia64 bits included. > > I would really like to hear from James before we think about merging > this, as it will impact James' patch set and would add a dependency > for that. I wouldn't want this patch to become a reason to delay > James' patch set for another kernel cycle. It's been totally quiet for a week both from James and from Thomas, I'll send the patch with the ia64 bits dropped. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel