Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp452585rdb; Thu, 30 Nov 2023 08:57:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6lJ8UKSe9dCDAxpYKWrI5bDqMkSXz6PBc9LXBYSr9YRPDgEzb7ooNyvxp2INUvXVD0EKR X-Received: by 2002:a05:6e02:12e5:b0:35a:fce4:8b68 with SMTP id l5-20020a056e0212e500b0035afce48b68mr29037466iln.4.1701363421352; Thu, 30 Nov 2023 08:57:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701363421; cv=none; d=google.com; s=arc-20160816; b=KbiBEtZMfrVh0EQawrYuegPSLegUAr+CYhteEgpE33MeFF7LAY0la1S18NXmYmWPsJ rOTmivxJ52XaWJ85HRr0uIeHX0+yXNX4YFtHAgmSs41Yy02pVK/hkyN1AwssT5h+wuHq jwA/oJkxBA408e9dIg7wcWujxSQZKJZ+AwNOX0/bBHSGBRzutUJF5cd6pMeqJDzLpbdN zEDO4U+zxYuBK7woqGBeD3rxRnvuvcuLB+oAyh4eswLNXAhJbB0njyanS4cHnEZtdAYa 1ySByWX2JjVaxVQ5xpJSB7R5I2KG4ipJUer6gssbfqAOZPdrNzgCSHVu5fjrl0OhbnED MJLA== 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=/fJ8ELynAK/aJ1v7cdDJwtJkgSDvjV1iLVGVX1XEtLM=; fh=Xuw50NQU8SL/KIAh0cMK+Ktk0YlNVLHY41XrbYq6MGE=; b=yNn3LF9lGiIwkQ0hYQCENIoaE9WoL+r/7ypErqjflxaK/ot+keHUPmxQVcLn6Vqar5 AgK5nUZeApoQ+UiXFb/q80kYkTheos58EOMtTdbdN1jybVhnzpUoRgVMMlYri5wJpSsw 7WX/hvTrQecnQ03MXdvnuaP4W2v7ZXwD02m/XIcw9IBOhFIum+NlOePrGbkDIbNtanKh KZ0sHw7w9bPzT7gijL0v+dJO40idYx+BnixRaHxHVFDHxrqEH8x5/i95i3zgJR5EWwC2 awe8jBTDhnVK0IULWbaw38jJk/gdmPhlvMKdPphVIQqG6JHnXkxTu/7DxntrTnF7Czlw b00Q== 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:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f2-20020a654002000000b005b21d089aabsi1633998pgp.519.2023.11.30.08.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:57:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 8EEB481F368B; Thu, 30 Nov 2023 08:56:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232292AbjK3Q4k (ORCPT + 99 others); Thu, 30 Nov 2023 11:56:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231837AbjK3Q4j (ORCPT ); Thu, 30 Nov 2023 11:56:39 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C388E10D0; Thu, 30 Nov 2023 08:56:43 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sh2KZ6Fb9z6H6nr; Fri, 1 Dec 2023 00:52:02 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id A15811402CD; Fri, 1 Dec 2023 00:56:41 +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:56:41 +0000 Date: Thu, 30 Nov 2023 16:56:40 +0000 From: Jonathan Cameron To: Russell King CC: , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH 14/21] x86/topology: Switch over to GENERIC_CPU_DEVICES Message-ID: <20231130165640.00006f6c@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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:56:55 -0800 (PST) On Tue, 21 Nov 2023 13:45:01 +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. > > x86's struct cpus come from struct x86_cpu, which has no other members > or users. Remove this and use the version defined by common code. > > 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 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