Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp452773rdb; Thu, 30 Nov 2023 08:57:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtElMRVafR2LOLIte0twwo2/mF+WrSybsGzEL8Mf4VZodsUT63g5OJwSClVy8cnlp6jjBl X-Received: by 2002:a05:6a21:a595:b0:181:ed8b:4823 with SMTP id gd21-20020a056a21a59500b00181ed8b4823mr22582178pzc.43.1701363442502; Thu, 30 Nov 2023 08:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701363442; cv=none; d=google.com; s=arc-20160816; b=JHT392NrkQXmAi6DGaHiizIRJhdndS9uOYkHjdxeiUvXzlKgmjQzkvM83Ik1Yu+6sc umJxwgbnZG8H1IxeyNC4jpNFEePPVKqsyOfKMAG3QAgR1T14di04XZzTnF7o9uBE35Q2 IthuoZhUFx6l3wPzuMuuWgpwJJtxdg74pxaMomp9FA4DIPLOlp/7C78iXMzE8sjSX9Y9 k2Jk3gjl1CAXfdy7GbEpiUrom5R0VU5M2QlivwBIr3MZgLFgIbLlczZJXJnJt6YTKmgF 7qgd+aYG5ZwmuySuZeK7YLJhHWp2HbK6GSaJ7jizoDh+9WfLAf7swETPTZ7pkWwD6maf wDrQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=WrJb3+vWglQuPCz+XGSb+lhVJKS3lTzsG2Hcte5elOA=; fh=E56+jiCwby26oCH4epbLRFhGzocieW6smFxI/QRu100=; b=WOb+5y1Hico9hTS5ekWPstJlEorUTQ+SubDCO6ePPyVot5WmZT6FBca18FkGSUerep xOPE40donW3/6Bete4M+VRnNAhyoclXYqH/KGu3SFy+to4YLZUdQMJcMTijsk05nFZUR 2WF4q7H+/CRdpiXKFjqtD7Yh630BrGCeme3k5Y0dNerLgusHa/FYPQV4EDtE9724fSPC AZofGbK/sRltswjH7qLmhOdTi8OS+3RhDT5AhTCTU2iQG6YmXIlzcdUNl/GchAwLlA9q S4/gYTW59Vmar9km0tSetPBlsV7UVhkcsS8/EekcSJIhTPgUM8UrEBVRxbJdahjgs4NH NGgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bj10-20020a056a02018a00b005c602ff4069si1742836pgb.552.2023.11.30.08.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1CD1F8029126; Thu, 30 Nov 2023 08:57:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345940AbjK3Q5F (ORCPT + 99 others); Thu, 30 Nov 2023 11:57:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345884AbjK3Q5E (ORCPT ); Thu, 30 Nov 2023 11:57:04 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA12ED67; Thu, 30 Nov 2023 08:57:09 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sh2L50m6Dz6K61V; Fri, 1 Dec 2023 00:52:29 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id E2BCD1402CD; Fri, 1 Dec 2023 00:57:07 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 30 Nov 2023 16:57:07 +0000 Date: Thu, 30 Nov 2023 16:57:06 +0000 From: Jonathan Cameron To: Russell King CC: , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , Huacai Chen , WANG Xuerui Subject: Re: [PATCH 17/21] LoongArch: Switch over to GENERIC_CPU_DEVICES Message-ID: <20231130165706.000060fa@Huawei.com> In-Reply-To: References: Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100005.china.huawei.com (7.191.160.25) To lhrpeml500005.china.huawei.com (7.191.163.240) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:57:19 -0800 (PST) On Tue, 21 Nov 2023 13:45:17 +0000 Russell King wrote: > From: James Morse > > Now that GENERIC_CPU_DEVICES calls arch_register_cpu(), which can be > overridden by the arch code, switch over to this to allow common code > to choose when the register_cpu() call is made. > > This allows topology_init() to be removed. > > This is an intermediate step to the logic being moved to drivers/acpi, > where GENERIC_CPU_DEVICES will do the work when booting with acpi=off. > > This is a subtle change. Originally: > - on boot, topology_init() would have marked present CPUs that > io_master() is true for as hotplug-incapable. > - if a CPU is hotplugged that is an io_master(), it can later be > hot-unplugged. > > The new behaviour is that any CPU that io_master() is true for will > now always be marked as hotplug-incapable, thus even if it was > hotplugged, it can no longer be hot-unplugged. > > This patch also has the effect of moving the registration of CPUs from > subsys to driver core initialisation, prior to any initcalls running. > > Signed-off-by: James Morse > Reviewed-by: Gavin Shan > Signed-off-by: Russell King (Oracle) Reviewed-by: Jonathan Cameron