Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3831943rdb; Thu, 14 Sep 2023 04:14:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPHqLZ/y7UgY1tPQl2x5DsZIyJ3pxW4Gg3Kf0zMSaRsrZvWxU1WQT3lE4yg3/O5WHLjiwR X-Received: by 2002:a05:6870:a248:b0:1bb:a3a8:c7c1 with SMTP id g8-20020a056870a24800b001bba3a8c7c1mr5536434oai.24.1694690094747; Thu, 14 Sep 2023 04:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694690094; cv=none; d=google.com; s=arc-20160816; b=c4LS2VJHwsnxo5qp7Rbw0KJU5zXK0Ihu9CeUxSL87h2j4rYef14XgtDCFOOjihrr+y sbfrx5sicscfBW/rWey37u4dgVhOHTIAiLAvEWVdiq1tpP/qapUj+vze2S15/iDQHvMp +Ko80MC+pucc8gO32rBze2HqYMk8LMUjyy5KSKrtu4JUgvcitu2/AJb9/NTL86VF3Se5 ZeXIcrmcprnRQYHL90GB18yCh9IuQfo97W9WIDaIA0ekO+EX6S9MPipXfN9p9qmqHN95 /6fsZgFszeAJLmwTdNQ9JMADZis2yMAUy/YF+v4u4hJOA1LsAbGCzqmd2TsOy8adQVBl GfXA== 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=z+Dvsap1tUP8omogRxVEQKXKpn+wnyBfWwv8AHVfMdw=; fh=oO43h3w0Gnh1/uzgjBLTRg+oe1Gv6aFHPIod5z8aS5s=; b=RkfXWumItcojeLL9yoVpxmj1NRs6ylOkiPBJN3ytQajyLpFAJ1mbST9rQWH4nUe4F1 bxlCQjlm8qSYYBSHCZc7UhroVj05cEvDCaf7Iq7vrXyuiS6HQ4w+XbZfUJKxDKQKwlpq bpNyvnQ/t5ogdZ9vLcznv7DvA8MACIcBJgsfGyxTg2BBCle1ewQToiF4sqIsI3RfOaR0 rMVLw+198/58IS+KysV0vXY/7sPbQIefgvJ6PttWK2h/ViE4gckdu/6sKIDs+ng6PbtW wNp2W/ChtWHuHTlMA4yrAl4UfjLaO7onvTlUUPyoobmy2tYd1k5zVSFOFxvGboLI7sZe c1kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x71-20020a63864a000000b0055b43079642si1348337pgd.120.2023.09.14.04.14.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:14:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 23584823F59E; Thu, 14 Sep 2023 04:00:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233068AbjINLAY (ORCPT + 99 others); Thu, 14 Sep 2023 07:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjINLAW (ORCPT ); Thu, 14 Sep 2023 07:00:22 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108C11BFE; Thu, 14 Sep 2023 04:00:18 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4RmZ7B5FLBz6HJdN; Thu, 14 Sep 2023 18:58:30 +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.31; Thu, 14 Sep 2023 12:00:15 +0100 Date: Thu, 14 Sep 2023 12:00:14 +0100 From: Jonathan Cameron To: James Morse CC: , , , , , , , , , Salil Mehta , Russell King , Jean-Philippe Brucker , , Subject: Re: [RFC PATCH v2 03/35] drivers: base: Allow parts of GENERIC_CPU_DEVICES to be overridden Message-ID: <20230914120014.00002866@Huawei.com> In-Reply-To: <20230913163823.7880-4-james.morse@arm.com> References: <20230913163823.7880-1-james.morse@arm.com> <20230913163823.7880-4-james.morse@arm.com> 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: lhrpeml100004.china.huawei.com (7.191.162.219) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected 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 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:00:31 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On Wed, 13 Sep 2023 16:37:51 +0000 James Morse wrote: > Architectures often have extra per-cpu work that needs doing > before a CPU is registered, often to determine if a CPU is > hotpluggable. > > To allow the ACPI architectures to use GENERIC_CPU_DEVICES, move > the cpu_register() call into arch_register_cpu(), which is made __weak > so architectures with extra work can override it. > This aligns with the way x86, ia64 and loongarch register hotplug CPUs > when they become present. > > Signed-off-by: James Morse > --- > Changes since RFC: > * Dropped __init from x86/ia64 arch_register_cpu() Confused... > diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c > index 94a848b06f15..741863a187a6 100644 > --- a/arch/ia64/kernel/topology.c > +++ b/arch/ia64/kernel/topology.c > @@ -59,7 +59,7 @@ void __ref arch_unregister_cpu(int num) > } > EXPORT_SYMBOL(arch_unregister_cpu); > #else > -static int __init arch_register_cpu(int num) > +int __init arch_register_cpu(int num) Still seems to be here... > { > return register_cpu(&sysfs_cpus[num].cpu, num); > } Even more confused because the block wasn't in the RFC at all. Maybe dropped static?